dev-cpp-users Mailing List for Dev-C++ (Page 418)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Dave M. <Dav...@im...> - 2003-03-20 13:46:58
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2653.12"> <TITLE>RE: Re[2]: [Dev-C++] how to use "srand"</TITLE> </HEAD> <BODY> <P><FONT SIZE=3D2>> The problem with the normal rand() is that the = low bits of it </FONT> <BR><FONT SIZE=3D2>> are not very</FONT> <BR><FONT SIZE=3D2>> rando, so rand()%11 have a tendancy to generate = a very ugly pattern.</FONT> </P> <P><FONT SIZE=3D2>Isn't that going to be less of a problem when using = 11 (or some other non power of 2) with the modulus operator? In those = cases, high bits will still have an effect on the resulting = number.</FONT></P> </BODY> </HTML> |
|
From: Daniel G. <sp...@ho...> - 2003-03-20 13:10:34
|
using namespace std; is best illustrated with an example
#include <iostream> // The 'new' way of including iostream
int main(int argc, char** argv)
{
using namespace std;
cout << "Hello World"; // output text to screen
return 0;
}
WITHOUT using namespace std; we must type
std::cout << "Hello World";
because we want to use the standard 'cout', not our own version.
If we have a lot of 'cout's to type, we can use using namespace std; to
avoid typing std:: all the time.
Daniel
>From: Roberto Ricardi <rob...@ar...>
>To: 'Dev-C++ -Users-List' <dev...@li...>
>Subject: [Dev-C++] Lost with 4.9.7.x and ... headers and using name std;
>Date: Thu, 20 Mar 2003 00:44:12 -0300
>
>Hi all,
>
>Im lost with Dev-C++ 4.9.7.x and ... compiler or linker ? results
>
>I had work well lately using:
>
>#include <stdio.h>
>#include <stdlib.h>
>#include <string.h>
>#include <time.h>
>#include <conio.h>
>#include <dos.h>
>#include <math.h>
>#include <windows.h>
>#include <cstdlib.h>
>#include <iostream.h>
>
>With new one versions Dev-C++ / mingw mean 4.9.7.4 and forward
>Start figthed with:
>
>/*#include <cstdlib.h>*/
>#include <cstdlib>
>/*#include <iostream.h>*/
>#include <iostream>
>
>using namespace std;
>
>all the time compiler told me:
>
>no such file or directory or some like [Linker error] undefined reference
>to `__gxx_personality_v0'
>
>What mean "using namespace std;" ??
>
>Sorry, I dont work with c++ mean just c
>
>Need I reinstall a old version again and forget ?. Please give me some
>ideas about.
>
>Thanks in advance
>
>Roberto
>
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Does your code think in ink? You could
>win a Tablet PC. Get a free Tablet PC hat just for playing. What are you
>waiting for?
>http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Chat online in real time with MSN Messenger http://messenger.msn.co.uk
|
|
From: David M. <ci...@ya...> - 2003-03-20 13:07:14
|
How would I check? (The standard you mean? Not exactly sure. How different is it from standard C?) --- Ioannis Vranos <iv...@em...> wrote: > Has anyone learned C99? I want just to check C99 > penetration on the public > (I suspect its towards 0). > > > > > Regards, > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL: http://run.to/noicys > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Does your code think > in ink? > You could win a Tablet PC. Get a free Tablet PC hat just > for playing. > What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ===== Signed David Mcken Life Sucks Live with it __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
|
From: David M. <ci...@ya...> - 2003-03-20 13:04:50
|
Check this site out http://www.cplusplus.com/ref/ctime/ I believe that will help you out. :) --- FABIAN HUENUMAN <fhu...@ho...> wrote: > > Hello every body: > I've got a question, so stupid but here is, which > function(in what header is > defined and what struct i have to use) can I use that > let me get the > current date and time. > Sorry if this question is so stupid but I need to know. > i tried with time.h where there is a definition of some > structure than > store a date but i did not find some function like > "getdate". > Fabian > > > > > > _________________________________________________________________ > Charla con tus amigos en línea mediante MSN Messenger: > http://messenger.yupimsn.com/ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Does your code think > in ink? > You could win a Tablet PC. Get a free Tablet PC hat just > for playing. > What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
|
From: David M. <ci...@ya...> - 2003-03-20 13:02:52
|
I am assisting with a project that I believe will benifit from the use of threads. However the group that I am working with does not want tolose portability just to get threads. What portable thread packages are avalible and are there any success stories that anyone on the list has had with these various packages. Thanks in advance David McKen __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
|
From: Kieran W. <Ki...@ce...> - 2003-03-20 12:30:01
|
Hi, Are there any tools/utilities/packages that will convert a Makefile = (using gcc) into a Dev-C++ project? Or does anyone know of some good documentation that would guide you = through it. Thanks Kieran The contents of this e-mail are confidential to the ordinary user of the = e-mail address to which it was addressed and may also be privileged. If you are not the addressee of this e-mail you may not copy, forward, = disclose or otherwise use it or any part of it in any form whatsoever. =20 If you have received this e-mail in error please report it to the = postmaster at <mailto:in...@ce...> Any views held by employees in this message do not necessarily represent = the views and opinions of CENDRIS Limited. |
|
From: Per W. <pw...@ia...> - 2003-03-20 11:57:42
|
The problem with the normal rand() is that the low bits of it are not very rando, so rand()%11 have a tendancy to generate a very ugly pattern. /Per W On Thu, 20 Mar 2003, Zodiaq wrote: > Hello Daniel and all Dev-C++ users, > > Thursday, March 20, 2003, 12:04:44 PM, Daniel wrote as follows: > > DG> ??? Are you sure? I thought the seed was used to make numbers 'more random'? > DG> Can you explain seeding a little bit more? > > random numbers generated by rand() are generated by this algorithm: > -take some number - here where srand() is used > -add to "some number" A VERY BIG INT (constant value, I don't know > exactly what it is) which generates new number which is bigger than > biggest possible int value - when this happens "some number" new value > is exactly what is over max_int > > Each time you use rand() second part is repeated and "some number" > value returned... for this algorithm most important is value of "A > VERY BIG INT"... there are also some more advanced algorithms in net, > but this one is fast and for almost every case just enough - it > generated "pseudo random" numbers... > > -- > regards, Zodiaq > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Tablet PC. > Does your code think in ink? You could win a Tablet PC. > Get a free Tablet PC hat just for playing. What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Daniel G. <sp...@ho...> - 2003-03-20 11:44:19
|
(MegacoParser *) is a typecast. What it means is that on the line
if (currentParser == (MegacoParser *)0)
currentParser is checked against the value of 0 AS IF IT WAS A POINTER TO
TYPE MegacoParser.
Why this cast is in there I don't know, as 0 is 0 anywhere surely?
That's what I reckon anyway.
>From: Somanathan Kaimal <som...@wi...>
>To: "'dev...@li...'"
><dev...@li...>
>Subject: [Dev-C++] FW: What does this mean ?
>Date: Thu, 20 Mar 2003 16:27:49 +0530
>
>Hi Techies,
>
>if (!currentParser)
> currentParser = parserList.getInstance();
>
>** if (currentParser == (MegacoParser *)0)
> {
> SWERR aSwerr;
> aSwerr.record(__FILE__, __LINE__, "Error: No Parser available.");
> return MegacoDefs::fail;
> }
>
>
>
>How does the line marked with * different from
>
>If(currentParser == 0)
>
>Thanks in adv
>Somanathan
>
_________________________________________________________________
Express yourself with cool emoticons http://messenger.msn.co.uk
|
|
From: Zodiaq <zo...@ac...> - 2003-03-20 11:31:41
|
Hello Daniel and all Dev-C++ users, Thursday, March 20, 2003, 12:04:44 PM, Daniel wrote as follows: DG> ??? Are you sure? I thought the seed was used to make numbers 'more random'? DG> Can you explain seeding a little bit more? random numbers generated by rand() are generated by this algorithm: -take some number - here where srand() is used -add to "some number" A VERY BIG INT (constant value, I don't know exactly what it is) which generates new number which is bigger than biggest possible int value - when this happens "some number" new value is exactly what is over max_int Each time you use rand() second part is repeated and "some number" value returned... for this algorithm most important is value of "A VERY BIG INT"... there are also some more advanced algorithms in net, but this one is fast and for almost every case just enough - it generated "pseudo random" numbers... -- regards, Zodiaq |
|
From: Daniel G. <sp...@ho...> - 2003-03-20 11:04:50
|
??? Are you sure? I thought the seed was used to make numbers 'more random'? Can you explain seeding a little bit more? >From: Dave McMinn <Dav...@im...> >To: dev...@li... >Subject: RE: [Dev-C++] how to use "srand" >Date: Thu, 20 Mar 2003 08:40:57 -0000 > _________________________________________________________________ Stay in touch with MSN Messenger http://messenger.msn.co.uk |
|
From: Per W. <pw...@ia...> - 2003-03-20 10:27:36
|
Actually time_t is normally an integer storing number of seconds since
1970.
localtime converts the number of seconds to a struct tm with time adjusted
for time zone and daylight savings.
gmtime converts the same number of seconds to a struct tm filled in with
UTC time, i.e. time-zone GMT without daylight savings.
For some systems, you might also do gettimeofday() to get sub-second time
resolution.
/Per W
On Thu, 20 Mar 2003, Ricardo L=F3pez Ruiz wrote:
> You can have different solutions as indicated in Schildt's book.
> For instance, one of them is:
>
> *********************
> #include <stdio.h>
> #include <stdlib.h>
> #include <time.h>
>
> int main()
> {
> struct tm *punt;
> time_t lt;
>
> lt=3Dtime(NULL);
> punt=3Dlocaltime(<);
> printf(asctime(punt));
>
> system("PAUSE");
> return 0;
> }
> **********************
>
> (1) time( ) gives the actual date and hour in a struct of type time_t;
> (2) localtime( ) separates the local time of the struct "lt" in a
> struct of type tm.
> (3) asctime( ) converts this information in a char array with the format:
> day month date hour: minutes:seconds year \n\0
>
> I hope this can help you.
>
> Ricardo.
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Tablet PC.
> Does your code think in ink? You could win a Tablet PC.
> Get a free Tablet PC hat just for playing. What are you waiting for?
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Ricardo R. <ri...@po...> - 2003-03-20 09:49:45
|
You can have different solutions as indicated in Schildt's book.
For instance, one of them is:
*********************
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
struct tm *punt;
time_t lt;
lt=time(NULL);
punt=localtime(<);
printf(asctime(punt));
system("PAUSE");
return 0;
}
**********************
(1) time( ) gives the actual date and hour in a struct of type time_t;
(2) localtime( ) separates the local time of the struct "lt" in a
struct of type tm.
(3) asctime( ) converts this information in a char array with the format:
day month date hour: minutes:seconds year \n\0
I hope this can help you.
Ricardo.
|
|
From: Dave M. <Dav...@im...> - 2003-03-20 08:39:16
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2653.12"> <TITLE>RE: [Dev-C++] how to use "srand"</TITLE> </HEAD> <BODY> <P><FONT SIZE=3D2>> how to use srand() function. how to define the = seed for this.</FONT> <BR><FONT SIZE=3D2>> suppose i want to generate a random number = between 0 and 10. </FONT> <BR><FONT SIZE=3D2>> then what seed should i use...</FONT> </P> <P><FONT SIZE=3D2>The seed just determines in what order the random = numbers are produced, not what the numbers are. If you want to generate = a random number between 0 and 10, then you could do it like = this:</FONT></P> <P><FONT SIZE=3D2>number =3D rand() % 11;</FONT> </P> </BODY> </HTML> |
|
From: swagat k. <sw...@ma...> - 2003-03-20 08:10:06
|
Hi! friends...i have got a doubt... how to use srand() function. how to define the seed for this. suppose i want to generate a random number between 0 and 10. then what seed should i use... though rand() function works fine....i just wanted to know the difference beween srand() and rand()... _____________________________________________________________ Get email for your site ---> http://www.everyone.net _____________________________________________________________ Select your own custom email address for FREE! Get yo...@yo... w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag |
|
From: Daniel G. <sp...@ho...> - 2003-03-20 07:45:20
|
I'm sure there's one in stdlib.h but I think your best bet is to do a search on Google.com as there are millions of pages about Date/Time in all sorts of languages/apps. Sorry I can't be more specific. Daniel >From: "FABIAN HUENUMAN" <fhu...@ho...> >To: dev...@li... >Subject: [Dev-C++] QUESTION ABOUT DATE >Date: Wed, 19 Mar 2003 23:23:23 +0000 > > >Hello every body: >I've got a question, so stupid but here is, which function(in what header >is defined and what struct i have to use) can I use that let me get the >current date and time. >Sorry if this question is so stupid but I need to know. >i tried with time.h where there is a definition of some structure than >store a date but i did not find some function like "getdate". >Fabian > > > > > >_________________________________________________________________ >Charla con tus amigos en línea mediante MSN Messenger: >http://messenger.yupimsn.com/ > > > >------------------------------------------------------- >This SF.net email is sponsored by: Does your code think in ink? You could >win a Tablet PC. Get a free Tablet PC hat just for playing. What are you >waiting for? >http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk |
|
From: Roberto R. <rob...@ar...> - 2003-03-20 03:44:24
|
Hi all, Im lost with Dev-C++ 4.9.7.x and ... compiler or linker ? results I had work well lately using: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <conio.h> #include <dos.h> #include <math.h> #include <windows.h> #include <cstdlib.h> #include <iostream.h> With new one versions Dev-C++ / mingw mean 4.9.7.4 and forward Start figthed with: /*#include <cstdlib.h>*/ #include <cstdlib> /*#include <iostream.h>*/ #include <iostream> using namespace std; all the time compiler told me: no such file or directory or some like [Linker error] undefined reference to `__gxx_personality_v0' What mean "using namespace std;" ?? Sorry, I dont work with c++ mean just c Need I reinstall a old version again and forget ?. Please give me some ideas about. Thanks in advance Roberto |
|
From: Thomas T. <sim...@ya...> - 2003-03-20 00:49:15
|
i just did a quick search to find out apparently its a revised editon of C in 1999, that is so..... "revised" (aka diffrent and IMQuickHO!, fudged up, but o well) its not compatable with C++, to find out more Ioannis do a search to find code tut's or somthing, if not ill help you im fairly good at looking for, obscure things.... if not or if sombodys intrested to find out WTF this is heres a link: http://www.kuro5hin.org/story/2001/2/23/194544/139 Ioannis Vranos <iv...@em...> wrote:Has anyone learned C99? I want just to check C99 penetration on the public (I suspect its towards 0). Regards, Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys ------------------------------------------------------- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! |
|
From: Ioannis V. <iv...@em...> - 2003-03-20 00:35:54
|
Has anyone learned C99? I want just to check C99 penetration on the public (I suspect its towards 0). Regards, Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |
|
From: FABIAN H. <fhu...@ho...> - 2003-03-19 23:23:31
|
Hello every body: I've got a question, so stupid but here is, which function(in what header is defined and what struct i have to use) can I use that let me get the current date and time. Sorry if this question is so stupid but I need to know. i tried with time.h where there is a definition of some structure than store a date but i did not find some function like "getdate". Fabian _________________________________________________________________ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/ |
|
From: Per W. <pw...@ia...> - 2003-03-19 19:00:36
|
Sorry, I should try to proof-read before sending :-)
/PWM
On Wed, 19 Mar 2003, Per Westermark wrote:
> Some resource editors allows you to edit the resources in situ. You just
> open an existing exe file - make my anoone - and translates... the
------------------------->made by anyone
> resources and then saves them back to the exe file.
>
> /Per W
>
> On Wed, 19 Mar 2003, Terry L Fritts wrote:
>
> > Hello Louis,
> >
> > Wednesday, March 19, 2003 you wrote:
> > LG> Are .res files optional or must they always be present in WIN32
> > LG> API apps ?
> >
> > Resource files are not necessary.
> >
> > LG> What is the advantage of having a menus etc. in the .res file and
> > LG> not in the .exe file?
> >
> > Resource files are embedded directly into an executable or dll and
> > then at runtime the program uses the resource data. So if data in
> > the resource file changes the program still has to be recompiled
> > to create the executable.
> >
> > Typically you begin with a .rc file (Resource Compiler file) which
> > can be edited. The .rc file is then compiled into a .res file.
> > Some programming languages even have converters for .res files so
> > that you might use it in different application languages.
> >
> > Microsoft has a dialog editor (DLGEDIT.EXE) that produces a .dlg
> > file which can be edited with any text editor and saved as a .rc
> > file. DLGEDIT.exe produces 16 bit binary .res files so normally
> > not usable in 32 bit applications. You can make a few changes to
> > the .dlg file, save it as .rc and then use dev-c++ to edit it.
> > You mainly just change the block in the .dlg:
> > DLGINCLUDE RCDATA FIXED IMPURE
> > BEGIN
> > "FILE.H\0"
> > END
> > to
> > #include "FILE.H"
> >
> > But now if you want to change the ICON or menu strings, other
> > strings, or even other user-defined items you can do it in the .rc
> > file - recompile it to a .res file - and then recompile your
> > application. But you haven't had to touch your code.
> >
> >
> > Terry Fritts
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Does your code think in ink?
> > You could win a Tablet PC. Get a free Tablet PC hat just for playing.
> > What are you waiting for?
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Does your code think in ink?
> You could win a Tablet PC. Get a free Tablet PC hat just for playing.
> What are you waiting for?
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Catsquotl <C.a...@hc...> - 2003-03-19 18:24:36
|
At 16:31 19-3-2003 +0200, Ioannis Vranos wrote:
>#include <stdlib.h>
>/* ... */
#include <cstdlib>
as include header will also work.
followed by code below.
greets cat
(sorry Ioannis for sending this to you first. wrong button)
>
>
>int main(void)
>{
> /* ... */
>
> system("pause");
>
> return 0;
>}
>
>
>
>
>Ioannis Vranos
>
>* Programming pages:
><http://www.noicys.freeurl.com/>http://www.noicys.freeurl.com
>* Alternative URL: <http://run.to/noicys>http://run.to/noicys
>
>
>-----Original Message-----
>From: dev...@li...
>[mailto:dev...@li...] On Behalf Of Theodore
>Kypraios
>Sent: Wednesday, March 19, 2003 2:47 PM
>To: dev...@li...
>Subject: [Dev-C++] silly question
>
>Dear C++ users,
>
>I have just downloaded Dev-C++ compiler. I am new in the C language.
>
>I have written the simplest program (hello.c). The compile proedure is
>fine, but when I execute the program I cannot anything in the screen. It
>seems that it appears an MS-dos windows and it is closed itself immediately.
>
>Any ideas? I realise that this a silly question but I have to solve it in
>order go further.
>
>Thanks in advance,
>Theodore
>
>Theodore Kypraios, Postgraduate Student
>================================================
>Web:
><http://www.maths.lancs.ac.uk/~kypraios>http://www.maths.lancs.ac.uk/~kypraios
>email: <mailto:t.k...@la...>t.k...@la...
>
>Department of Mathematics and Statistics
>Fylde College
>Lancaster University
>Lancaster, LA1 4YF
>UK
>Tel:+(44)(0)1524 593094
>Fax:+(44)(0)1524 592681
>================================================
|
|
From: Louis G. <lg...@ya...> - 2003-03-19 16:58:22
|
Greetings I'm trying to learn how write WIN32 API apps using DevC++ and want to start off with a very basic app that has a main menu with three items: 1. FILE (with submenus for OPEN, CLOSE, SAVE, SAVE AS, PRINT, EXIT)...the usual WIN32 file functions 2. EDIT (with submenus CUT,COPY, PASTE, SELECT ALL) ... the usual WIN32 clipboard functions 3. RUN ( with submenus RUN1, RUN2, RUN3) ..so that when a user clicks on RUN1 DOS .exe file#1 runs, RUN2 runs DOS .exe file#2 etc. I'm OK constructing .cpp based console apps using DevC++ and now want to learn using good source code examples how to do this basic WIN32 API app in DevC++. Can anyone share a WIN32 .CPP source code file that does something similar ? Any help is appreciated. __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
|
From: Per W. <pw...@ia...> - 2003-03-19 14:34:05
|
Some resource editors allows you to edit the resources in situ. You just open an existing exe file - make my anoone - and translates... the resources and then saves them back to the exe file. /Per W On Wed, 19 Mar 2003, Terry L Fritts wrote: > Hello Louis, > > Wednesday, March 19, 2003 you wrote: > LG> Are .res files optional or must they always be present in WIN32 > LG> API apps ? > > Resource files are not necessary. > > LG> What is the advantage of having a menus etc. in the .res file and > LG> not in the .exe file? > > Resource files are embedded directly into an executable or dll and > then at runtime the program uses the resource data. So if data in > the resource file changes the program still has to be recompiled > to create the executable. > > Typically you begin with a .rc file (Resource Compiler file) which > can be edited. The .rc file is then compiled into a .res file. > Some programming languages even have converters for .res files so > that you might use it in different application languages. > > Microsoft has a dialog editor (DLGEDIT.EXE) that produces a .dlg > file which can be edited with any text editor and saved as a .rc > file. DLGEDIT.exe produces 16 bit binary .res files so normally > not usable in 32 bit applications. You can make a few changes to > the .dlg file, save it as .rc and then use dev-c++ to edit it. > You mainly just change the block in the .dlg: > DLGINCLUDE RCDATA FIXED IMPURE > BEGIN > "FILE.H\0" > END > to > #include "FILE.H" > > But now if you want to change the ICON or menu strings, other > strings, or even other user-defined items you can do it in the .rc > file - recompile it to a .res file - and then recompile your > application. But you haven't had to touch your code. > > > Terry Fritts > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Does your code think in ink? > You could win a Tablet PC. Get a free Tablet PC hat just for playing. > What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Per W. <pw...@ia...> - 2003-03-19 14:32:35
|
The xx.res file is just a middle step during the build of the application, just like the xx.o or xx.obj is an itermediate file for the source code. The last step in the linking will place the xx.res data into the xx.exe or xx.obj file. /Per W On Wed, 19 Mar 2003, Zodiaq wrote: > Hello Louis and all Dev-C++ users, > > Wednesday, March 19, 2003, 2:35:46 PM, Louis wrote as follows: > > LG> On this same question, > > LG> Are .res files optional or must they always be present in > LG> WIN32 API apps ? > > Resource files are optional... > > LG> What is the advantage of having > LG> a menus etc. in the .res file and not in the .exe file? > > The resource files I know ( .rc ) are compiled and linked into > executable final file ( .exe)... The external "resource files" should > be rather named as extra configuration files, not resource files... > > What are advantages of using .rc files for apps?? Here are few: > -there are some editors to help you easly build them, and later > maintain - make changes, add new ones... hmmm... for now only realy > good one is the one that comes with Visual C++... after making some > changes to .rc it adds few M$ related lines to code which you can > later delete using text editor... for building new resources I prefer > wedit (new version is integrated into lcc32 ide) but I had some > difficulties to get it work with existing .rc... > -you can EASLY make your app localized - very good example is eMule - > her (http://www.emule-project.net/?s=downloads) you can find its FULL > source, look at emule.rc :-) > -when using resource files you can make fast changes to any messages > that are passed to user - for example if I want to changes text passed > through MessageBox I don't have to look thoughout my whole code, I > need to find it my .rc > -.rc files are (AFAIK) only places where app version, compilation > date, company name etc. can be stored... you can later view it using > "details" (right-click on file) under any Windows... > > DISadvantages: > -dialog resources when using text editor are (very) hard to edit - you > have to know EXACTLY where to place them on the screen (pixels) and > what special properties they have... this is much harder then > comparing WYSIWYG HTML editor to TEXT HTML Editors... > > -- > regards, Zodiaq > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Does your code think in ink? > You could win a Tablet PC. Get a free Tablet PC hat just for playing. > What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Ioannis V. <iv...@em...> - 2003-03-19 14:32:07
|
#include <stdlib.h>
/* ... */
=20
=20
int main(void)
{
/* ... */
=20
system("pause");
=20
return 0;
}
=20
=20
=20
=20
Ioannis Vranos
=20
* Programming pages: <http://www.noicys.freeurl.com/>
http://www.noicys.freeurl.com
* Alternative URL: <http://run.to/noicys> http://run.to/noicys
=20
=20
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Theodore
Kypraios
Sent: Wednesday, March 19, 2003 2:47 PM
To: dev...@li...
Subject: [Dev-C++] silly question
Dear C++ users,
=20
I have just downloaded Dev-C++ compiler. I am new in the C language.
=20
I have written the simplest program (hello.c). The compile proedure is =
fine,
but when I execute the program I cannot anything in the screen. It seems
that it appears an MS-dos windows and it is closed itself immediately.
=20
Any ideas? I realise that this a silly question but I have to solve it =
in
order go further.
=20
Thanks in advance,
Theodore
=20
Theodore Kypraios, Postgraduate Student
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Web: http://www.maths.lancs.ac.uk/~kypraios
email: t.k...@la...
=20
Department of Mathematics and Statistics
Fylde College
Lancaster University
Lancaster, LA1 4YF
UK
Tel:+(44)(0)1524 593094
Fax:+(44)(0)1524 592681
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|