dev-cpp-users Mailing List for Dev-C++
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
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
1
(11) |
2
(17) |
3
(7) |
4
(12) |
5
(4) |
6
(11) |
7
(9) |
8
(5) |
9
(7) |
10
(2) |
11
(5) |
12
(1) |
13
(6) |
14
(1) |
15
(11) |
16
(4) |
17
(9) |
18
(6) |
19
(1) |
20
|
21
(14) |
22
(1) |
23
(6) |
24
|
25
|
26
|
27
(2) |
28
(1) |
29
(6) |
30
(9) |
31
(1) |
|
From: Jason B. <red...@ya...> - 2004-12-31 21:21:47
|
I'm trying to delve into more complex C programming. I want to know how to use io.h (linked to by dir.h) for functions such as findfirst and so on with the purpose of creating programs that can search for files or perhaps perform like ls/dir. I have found a few examples that work. One is Windows API, but I'm not trying to do this with Windows API. The other uses dirent.h. I've heard that this sort of thing is very compiler/OS specific, so once I have this figured out for GCC, there shouldn't be anymore problems. I am slightly confused on how to declare and deal with the struct involved. Finally, how easily would this directory parsing routine port to another OS or processor. I'd appreciate any advice. Thanks. |
From: Per W. <pw...@ia...> - 2004-12-30 23:08:32
|
Yes, of course your solution is the "ultimate" way of writing it. The important thing about the two ways of using division is to point out problems with truncation errors where multiple integer divisions are used. /Per W On Thu, 30 Dec 2004, Reuven R. wrote: > (ticks2/CLOCKS_PER_SEC-ticks1/CLOCKS_PER_SEC)<1) > became > (((ticks2-ticks1)/CLOCKS_PER_SEC)<1) > so why not go a bit further and... > ((ticks2-ticks1)<CLOCKS_PER_SEC) > ?;) > > ===== > http://www.mia.org.il/petition/index1.html > http://hungersite.com > > in case, ur wondering, about the first link - > http://www.terror-victims.israel.net/mainh.swf > > and who'd thought that we'll need http://www.petitiononline.com/rjw23/ ,eh? > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Helps protect you from nasty viruses. > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: <or...@vp...> - 2004-12-30 17:41:52
|
Andre Macario Barros wrote: > My (new) questions/considerations are: >=20 > A) How to update the windres.exe? Is it the same way I did (Full > Dev earliest version new install)? Go to http://www.mingw.org and get the latest version of "binutils" from = the=20 downloads page. > B) Where do I find on Mingw documentation or in Dev documentation > any tutorial about editing and compiling resource files? About editing, there is some info in the Win32 API reference, and general= ly on=20 the net. About compiling, type "windres --help" in a command prompt, and = it will=20 print it's usage info, but Dev-Cpp uses windres correctly, so you don't r= eally=20 need that. -- Greets, Bal=E1zs |
From: Reuven R. <a2k...@ya...> - 2004-12-30 11:12:41
|
(ticks2/CLOCKS_PER_SEC-ticks1/CLOCKS_PER_SEC)<1) became (((ticks2-ticks1)/CLOCKS_PER_SEC)<1) so why not go a bit further and... ((ticks2-ticks1)<CLOCKS_PER_SEC) ?;) ===== http://www.mia.org.il/petition/index1.html http://hungersite.com in case, ur wondering, about the first link - http://www.terror-victims.israel.net/mainh.swf and who'd thought that we'll need http://www.petitiononline.com/rjw23/ ,eh? __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail |
From: Per W. <pw...@ia...> - 2004-12-30 05:23:17
|
Guess what. I normally _always_ test things before sending out answers. Why do you think I said that one machine stepped with 10ms granularity, and another with 15.625ms? Anyway, the program always endied after >= CLOCKS_PER_SEC ticks. /Per W On Thu, 30 Dec 2004, Eric wrote: > XXXXXXXXX > > Sorry > > > ----- Original Message ----- > From: "Eric" <eri...@cl...> > To: "Per Westermark" <pw...@ia...> > Cc: <dev...@li...> > Sent: Thursday, December 30, 2004 3:47 PM > Subject: Re: [Dev-C++] time - try this, > > > CAN YOUI JOKERS STOP LOOKING AT THE ##### CODE ANF JUSTR TRY THE %$%%%t% THING, i DON'T ASJFOPE MUCG > > > ----- Original Message ----- > From: "Per Westermark" <pw...@ia...> > To: "Eric" <eri...@cl...> > Cc: <dev...@li...> > Sent: Thursday, December 30, 2004 12:39 PM > Subject: Re: [Dev-C++] time - try this, > > > If you do > > ((ticks2 - ticks1) / CLOCKS_PER_SEC) < 1 > > (observe difference before division) there is no possibility that you can > get an answer less than 1000. If you do two divisions, you might get into > problems because of the round-off errors you introduce. > > While you have to divide the value from clock() with CLOCKS_PER_SEC to get > seconds, there is no guarantee that the value returned by clock() can > assume all possible values, i.e. if CLOCKS_PER_TICK is 1000, it is still > possible that the only values you can get are 32, 64, 96 etc if the actual > clock only counts in 32ms resolution. In real life, most of the time, > clock() steps with a non-integer number of ticks because the underlying hw > might tick on a frequency that is > > For Posix compliance, CLOCKS_PER_SEC should _always_ be 1000000 i.e. > microsecond resolution, even of the real computer clock can't tick once > every us. > > On one of my machines - WinXP, P4 HT - the possible steps are 15.625ms, > i.e. I get the values 15,31,62,78,... for a total of 64 values/second. > > On another machine using Linux, clock() steps exactly exactly every 10ms, > but since the resolution is in us, the possible values increases with > 10000 at a time. > > /Per W |
From: Eric <eri...@cl...> - 2004-12-30 02:50:24
|
XXXXXXXXX Sorry ----- Original Message ----- From: "Eric" <eri...@cl...> To: "Per Westermark" <pw...@ia...> Cc: <dev...@li...> Sent: Thursday, December 30, 2004 3:47 PM Subject: Re: [Dev-C++] time - try this, CAN YOUI JOKERS STOP LOOKING AT THE ##### CODE ANF JUSTR TRY THE %$%%%t% THING, i DON'T ASJFOPE MUCG ----- Original Message ----- From: "Per Westermark" <pw...@ia...> To: "Eric" <eri...@cl...> Cc: <dev...@li...> Sent: Thursday, December 30, 2004 12:39 PM Subject: Re: [Dev-C++] time - try this, If you do ((ticks2 - ticks1) / CLOCKS_PER_SEC) < 1 (observe difference before division) there is no possibility that you can get an answer less than 1000. If you do two divisions, you might get into problems because of the round-off errors you introduce. While you have to divide the value from clock() with CLOCKS_PER_SEC to get seconds, there is no guarantee that the value returned by clock() can assume all possible values, i.e. if CLOCKS_PER_TICK is 1000, it is still possible that the only values you can get are 32, 64, 96 etc if the actual clock only counts in 32ms resolution. In real life, most of the time, clock() steps with a non-integer number of ticks because the underlying hw might tick on a frequency that is For Posix compliance, CLOCKS_PER_SEC should _always_ be 1000000 i.e. microsecond resolution, even of the real computer clock can't tick once every us. On one of my machines - WinXP, P4 HT - the possible steps are 15.625ms, i.e. I get the values 15,31,62,78,... for a total of 64 values/second. On another machine using Linux, clock() steps exactly exactly every 10ms, but since the resolution is in us, the possible values increases with 10000 at a time. /Per W On Thu, 30 Dec 2004, Eric wrote: > Hi Malcolm > I just tried it again and got 990 then 1040 > > I wonder why? I have a Pentium 4, 2GHz, "GenuineIntel" (according to the control panel.) windows 98se > > >From Eric > > > > We are all here on earth to help others; > what on earth the others are here for I don't know! > > > > ----- Original Message ----- > From: "Malcolm Nealon" > To: <dev...@li...> > Sent: Thursday, December 30, 2004 12:03 AM > Subject: Re: [Dev-C++] time - try this, > > > Hello Eric, > > On 29 December 2004, 11:11:18, you wrote: > > > #include<time.h> > > #include<stdio.h> > > > int main(void) > > { > > clock_t ticks1, ticks2; > > > ticks1=clock(); > > ticks2=ticks1; > > while((ticks2/CLOCKS_PER_SEC-ticks1/CLOCKS_PER_SEC)<1) > > ticks2=clock(); > > > printf("Took %ld ticks to wait one second.\n",ticks2-ticks1); > > printf("This value should be the same as CLOCKS_PER_SEC which is %ld.\n",CLOCKS_PER_SEC); > > return 0; > > } > > This produces 1000 > > > while(((ticks2-ticks1)/CLOCKS_PER_SEC)<1) > ticks2=clock(); > > > -- > Best regards, > Malcolm > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Eric <eri...@cl...> - 2004-12-30 02:47:38
|
CAN YOUI JOKERS STOP LOOKING AT THE ##### CODE ANF JUSTR TRY THE %$%%%t% THING, i DON'T ASJFOPE MUCG ----- Original Message ----- From: "Per Westermark" <pw...@ia...> To: "Eric" <eri...@cl...> Cc: <dev...@li...> Sent: Thursday, December 30, 2004 12:39 PM Subject: Re: [Dev-C++] time - try this, If you do ((ticks2 - ticks1) / CLOCKS_PER_SEC) < 1 (observe difference before division) there is no possibility that you can get an answer less than 1000. If you do two divisions, you might get into problems because of the round-off errors you introduce. While you have to divide the value from clock() with CLOCKS_PER_SEC to get seconds, there is no guarantee that the value returned by clock() can assume all possible values, i.e. if CLOCKS_PER_TICK is 1000, it is still possible that the only values you can get are 32, 64, 96 etc if the actual clock only counts in 32ms resolution. In real life, most of the time, clock() steps with a non-integer number of ticks because the underlying hw might tick on a frequency that is For Posix compliance, CLOCKS_PER_SEC should _always_ be 1000000 i.e. microsecond resolution, even of the real computer clock can't tick once every us. On one of my machines - WinXP, P4 HT - the possible steps are 15.625ms, i.e. I get the values 15,31,62,78,... for a total of 64 values/second. On another machine using Linux, clock() steps exactly exactly every 10ms, but since the resolution is in us, the possible values increases with 10000 at a time. /Per W On Thu, 30 Dec 2004, Eric wrote: > Hi Malcolm > I just tried it again and got 990 then 1040 > > I wonder why? I have a Pentium 4, 2GHz, "GenuineIntel" (according to the control panel.) windows 98se > > >From Eric > > > > We are all here on earth to help others; > what on earth the others are here for I don't know! > > > > ----- Original Message ----- > From: "Malcolm Nealon" > To: <dev...@li...> > Sent: Thursday, December 30, 2004 12:03 AM > Subject: Re: [Dev-C++] time - try this, > > > Hello Eric, > > On 29 December 2004, 11:11:18, you wrote: > > > #include<time.h> > > #include<stdio.h> > > > int main(void) > > { > > clock_t ticks1, ticks2; > > > ticks1=clock(); > > ticks2=ticks1; > > while((ticks2/CLOCKS_PER_SEC-ticks1/CLOCKS_PER_SEC)<1) > > ticks2=clock(); > > > printf("Took %ld ticks to wait one second.\n",ticks2-ticks1); > > printf("This value should be the same as CLOCKS_PER_SEC which is %ld.\n",CLOCKS_PER_SEC); > > return 0; > > } > > This produces 1000 > > > while(((ticks2-ticks1)/CLOCKS_PER_SEC)<1) > ticks2=clock(); > > > -- > Best regards, > Malcolm > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: <go...@li...> - 2004-12-30 02:02:25
|
Hi Andre, I had the same problem few times ago; the problem was on the PATH. Be sur= e that you don't have an old version of WINDRES (cygwin perhaps?) and that the actual program that is executed is the one provided by DEVCPP. Hope that this will help you. Kind regards, > > Dear Users, > > A few days ago I=B4ve post a message about a parse error in a > resource file during the attempt to compile a windows C program. > > I received 3 recommendations: > 1-to update my WINDRES; > 2-to begin with a "empty" project (not windows > project); > 3-to include a #include <windows.h> inside the > resource file; > > Thanks for all of you. > > My actions were: > 1-I had Dev 4.9.8.0 / gcc 3.2. I uninstalled it and installed > Dev 4.9.9.1 / gcc 3.3 (thinking that the WINDES.EXE would be > updated automatically with the new mingw 3.3 package) > > The version of WINDRES.EXE was the same, 2.13.90, and the parse > error message continued to be presented; > > 2-I made a test with an empty project and the parse error continued > to be presented; > > and... > > 3-I put a #include <windows.h> inside the resource file, the parse > error was solved for that example I showed to you, the poppad2.c, > but for the next example, the problem appeared again! > > My (new) questions/considerations are: > > A) How to update the windres.exe? Is it the same way I did (Full > Dev earliest version new install)? > B) Where do I find on Mingw documentation or in Dev documentation > any tutorial about editing and compiling resource files? > C) Any other help? > > Regards > Andre Barros > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Andre M. B. <ab...@cp...> - 2004-12-30 01:20:14
|
Dear Users, A few days ago I=B4ve post a message about a parse error in a=20 resource file during the attempt to compile a windows C program. I received 3 recommendations: 1-to update my WINDRES; 2-to begin with a "empty" project (not windows project); 3-to include a #include <windows.h> inside the=20 resource file; Thanks for all of you. My actions were: 1-I had Dev 4.9.8.0 / gcc 3.2. I uninstalled it and installed Dev 4.9.9.1 / gcc 3.3 (thinking that the WINDES.EXE would be=20 updated automatically with the new mingw 3.3 package) The version of WINDRES.EXE was the same, 2.13.90, and the parse error message continued to be presented; 2-I made a test with an empty project and the parse error continued to be presented; and... 3-I put a #include <windows.h> inside the resource file, the parse error was solved for that example I showed to you, the poppad2.c, but for the next example, the problem appeared again! My (new) questions/considerations are: A) How to update the windres.exe? Is it the same way I did (Full Dev earliest version new install)? B) Where do I find on Mingw documentation or in Dev documentation any tutorial about editing and compiling resource files? C) Any other help?=20 Regards Andre Barros |
From: Alfred P. R. <al...@ya...> - 2004-12-30 00:25:44
|
I've seen an issue where if you place an escaped quote in the form: a_string = (string)"\""; then the class browser doesn't see any items below the escaped quote. This does not happen if you place the same form in the header file! Go figure. Tom Strickland <str...@ne...> wrote: Have you tried changing your class view mode? (right click in the class browser and select View mode from the menu) Tom "Daniel Datcu" wrote: >Hello >Does anybody know why the class browser in Dev-C++ doesn't show all the classes ? >Thanks alot > Alfred P. Reaud |
From: Per W. <pw...@ia...> - 2004-12-29 23:39:32
|
If you do ((ticks2 - ticks1) / CLOCKS_PER_SEC) < 1 (observe difference before division) there is no possibility that you can get an answer less than 1000. If you do two divisions, you might get into problems because of the round-off errors you introduce. While you have to divide the value from clock() with CLOCKS_PER_SEC to get seconds, there is no guarantee that the value returned by clock() can assume all possible values, i.e. if CLOCKS_PER_TICK is 1000, it is still possible that the only values you can get are 32, 64, 96 etc if the actual clock only counts in 32ms resolution. In real life, most of the time, clock() steps with a non-integer number of ticks because the underlying hw might tick on a frequency that is For Posix compliance, CLOCKS_PER_SEC should _always_ be 1000000 i.e. microsecond resolution, even of the real computer clock can't tick once every us. On one of my machines - WinXP, P4 HT - the possible steps are 15.625ms, i.e. I get the values 15,31,62,78,... for a total of 64 values/second. On another machine using Linux, clock() steps exactly exactly every 10ms, but since the resolution is in us, the possible values increases with 10000 at a time. /Per W On Thu, 30 Dec 2004, Eric wrote: > Hi Malcolm > I just tried it again and got 990 then 1040 > > I wonder why? I have a Pentium 4, 2GHz, "GenuineIntel" (according to the control panel.) windows 98se > > >From Eric > > > > We are all here on earth to help others; > what on earth the others are here for I don't know! > > > > ----- Original Message ----- > From: "Malcolm Nealon" > To: <dev...@li...> > Sent: Thursday, December 30, 2004 12:03 AM > Subject: Re: [Dev-C++] time - try this, > > > Hello Eric, > > On 29 December 2004, 11:11:18, you wrote: > > > #include<time.h> > > #include<stdio.h> > > > int main(void) > > { > > clock_t ticks1, ticks2; > > > ticks1=clock(); > > ticks2=ticks1; > > while((ticks2/CLOCKS_PER_SEC-ticks1/CLOCKS_PER_SEC)<1) > > ticks2=clock(); > > > printf("Took %ld ticks to wait one second.\n",ticks2-ticks1); > > printf("This value should be the same as CLOCKS_PER_SEC which is %ld.\n",CLOCKS_PER_SEC); > > return 0; > > } > > This produces 1000 > > > while(((ticks2-ticks1)/CLOCKS_PER_SEC)<1) > ticks2=clock(); > > > -- > Best regards, > Malcolm > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: <str...@ne...> - 2004-12-29 23:03:58
|
Have you tried changing your class view mode? (right click in the class browser and select View mode from the menu) Tom "Daniel Datcu" <dan...@pl...> wrote: >Hello >Does anybody know why the class browser in Dev-C++ doesn't show all the classes ? >Thanks alot > __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp |
From: Daniel D. <dan...@pl...> - 2004-12-29 18:38:04
|
Hello=20 Does anybody know why the class browser in Dev-C++ doesn't show all the = classes ? Thanks alot |
From: Eric <eri...@cl...> - 2004-12-29 18:08:50
|
Hi Malcolm I just tried it again and got 990 then 1040 I wonder why? I have a Pentium 4, 2GHz, "GenuineIntel" (according to the control panel.) windows 98se From Eric We are all here on earth to help others; what on earth the others are here for I don't know! ----- Original Message ----- From: "Malcolm Nealon" To: <dev...@li...> Sent: Thursday, December 30, 2004 12:03 AM Subject: Re: [Dev-C++] time - try this, Hello Eric, On 29 December 2004, 11:11:18, you wrote: > #include<time.h> > #include<stdio.h> > int main(void) > { > clock_t ticks1, ticks2; > ticks1=clock(); > ticks2=ticks1; > while((ticks2/CLOCKS_PER_SEC-ticks1/CLOCKS_PER_SEC)<1) > ticks2=clock(); > printf("Took %ld ticks to wait one second.\n",ticks2-ticks1); > printf("This value should be the same as CLOCKS_PER_SEC which is %ld.\n",CLOCKS_PER_SEC); > return 0; > } This produces 1000 while(((ticks2-ticks1)/CLOCKS_PER_SEC)<1) ticks2=clock(); -- Best regards, Malcolm ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Malcolm N. <m.n...@wa...> - 2004-12-29 11:03:37
|
Hello Eric, On 29 December 2004, 11:11:18, you wrote: > #include<time.h> > #include<stdio.h> > int main(void) > { > clock_t ticks1, ticks2; > ticks1=clock(); > ticks2=ticks1; > while((ticks2/CLOCKS_PER_SEC-ticks1/CLOCKS_PER_SEC)<1) > ticks2=clock(); > printf("Took %ld ticks to wait one second.\n",ticks2-ticks1); > printf("This value should be the same as CLOCKS_PER_SEC which is %ld.\n",CLOCKS_PER_SEC); > return 0; > } This produces 1000 while(((ticks2-ticks1)/CLOCKS_PER_SEC)<1) ticks2=clock(); -- Best regards, Malcolm mailto:m.n...@wa... |
From: Eric <eri...@cl...> - 2004-12-29 10:11:55
|
#include<time.h> #include<stdio.h> int main(void) { clock_t ticks1, ticks2; ticks1=clock(); ticks2=ticks1; while((ticks2/CLOCKS_PER_SEC-ticks1/CLOCKS_PER_SEC)<1) ticks2=clock(); printf("Took %ld ticks to wait one second.\n",ticks2-ticks1); printf("This value should be the same as CLOCKS_PER_SEC which is %ld.\n",CLOCKS_PER_SEC); return 0; } /* I get 1050 or 1040 then 990 ticks most times it is 1040 */ /* sorry everyone, I must do more work */ |
From: Truman M. <sgh...@ya...> - 2004-12-28 07:33:41
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body bgcolor="#FFFFF1" text="#4C48F1"><p><a href="http://fyfx.fjdcchlc.info/?k6SmSpRiooX7B8Qoiyp"><IMG SRC="cid:part1.07090603.05010407@kqq...@ho..." border="0" ALT=""></a></p><p><font color="#FFFFFF">but... made of Believe It Sports</font></p><p><font color="#FFFFF5">in 1840 please</font></p></body></html> |
From: Michal M. <mi...@mo...> - 2004-12-27 13:22:03
|
Milka wrote: > Hi dev users! > > I have a problem I cant cope :( > > How to edit WebUpdate mirrors ? if you have mirrors.cfg on your computer in a directory like c:\Documents and Settings\User\Local Settings\Application Data\ under Win2000/XP or in the Dev-C++ directory under Win9x than you can simply edit it. If you don't have it, you can download it from http://devpaks.org/mirrors.cfg . -- Regards, Michal |
From: Milka <mil...@wp...> - 2004-12-27 11:57:40
|
Hi dev users! I have a problem I cant cope :( How to edit WebUpdate mirrors ? -- Best Regards, Milka |
From: <or...@vp...> - 2004-12-23 18:43:35
|
Brian Trahan wrote: > Hi everyone i'm having a problem with allegro in devc++. I downloaded=20 > the newst vertion of devc++ and used the web update to get allegro. I=20 > tryed to test allegro by using the templated program that it makes when= =20 > tell it to make a new allegro project. It gives me alleg40.dll not=20 > found tough it is in the dll folder of devc++. i ahve tried including i= t=20 > in the project and linking it to it also but it is still giveing the=20 > same problem. Should i copy it to another folder or is there some no=20 > brainer thing that i should be doing and am just overlooking. >=20 > Thanks for any help you can provide, > Brian The DLL needs to be found by windows at your program load time (or at run time). The easiest way is to put the DLL into the same folder as your exe, or to /windows/system32, or... (look at the LoadLibrary() winapi function for more info). -- Greets, Bal=E1zs |
From: Ricardo_Lopez <ri...@un...> - 2004-12-23 18:43:12
|
you should put a copy of alleg40.dll in the system folder of the windows folder. Other possibility is to copy this dll in the folder where you are doing your programmes. Ricardo. |
From: Brian T. <bri...@be...> - 2004-12-23 18:31:45
|
Hi everyone i'm having a problem with allegro in devc++. I downloaded the newst vertion of devc++ and used the web update to get allegro. I tryed to test allegro by using the templated program that it makes when tell it to make a new allegro project. It gives me alleg40.dll not found tough it is in the dll folder of devc++. i ahve tried including it in the project and linking it to it also but it is still giveing the same problem. Should i copy it to another folder or is there some no brainer thing that i should be doing and am just overlooking. Thanks for any help you can provide, Brian |
From: <or...@vp...> - 2004-12-23 17:20:24
|
Andre Macario Barros wrote: > -->The error message after the compilation attempt is: > "Line 38 in file poppad2.rc: parse error" Common with old versions of windres. Update your resource compiler (windres.exe) to the latest version. -- Greets, Bal=E1zs |
From: Malcolm N. <m.n...@wa...> - 2004-12-23 17:06:44
|
Hello Andre, On 23 December 2004, 16:12:41, you wrote: > Dear Users, > I have a project file which is a Charles Petzold, chapter 10,=20 > poppad2.c example. =20 > All example files from this book are made for Visual C++. Up to this > example in this chapter I am getting success to adapt them to Dev. > But this example is presenting one parse error that I can=B4t discover > what=B4s grong.=20 I can actually get this to compile (and even run correctly when I add a return value to AskConfirmation (int AskConfirmation (HWND hwnd)) but that is probably just a mistype. What you need to do is create an empty windows project, or use the Windows Application template and replace the contents of the provided main.cpp file with your popadd2.c file. Add the resources.h and popadd.rc files too the project, press F9 and look at your program runing. I would suggest creating an empty windows project to save yourself a bit of cutting and pasting every time you need to create a new project from the book. --=20 Best regards, Malcolm mailto:m.n...@wa... |
From: Andre M. B. <ab...@cp...> - 2004-12-23 15:12:58
|
Dear Users, I have a project file which is a Charles Petzold, chapter 10,=20 poppad2.c example. =20 All example files from this book are made for Visual C++. Up to this example in this chapter I am getting success to adapt them to Dev. But this example is presenting one parse error that I can=B4t discover what=B4s grong.=20 -->Here are the codes: /////////////////////////////// ***file "poppad2.c" #include <windows.h> #include "resource.h" #define ID_EDIT 1 LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); TCHAR szAppName[] =3D TEXT ("PopPad2") ; int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) { HACCEL hAccel ; HWND hwnd ; MSG msg ; WNDCLASS wndclass ; wndclass.style =3D CS_HREDRAW | CS_VREDRAW ; wndclass.lpfnWndProc =3D WndProc ; wndclass.cbClsExtra =3D 0 ; wndclass.cbWndExtra =3D 0 ; wndclass.hInstance =3D hInstance ; wndclass.hIcon =3D LoadIcon (hInstance, szAppName) ; wndclass.hCursor =3D LoadCursor (NULL, IDC_ARROW) ; wndclass.hbrBackground =3D (HBRUSH) GetStockObject (WHITE_BRUSH) ; wndclass.lpszMenuName =3D szAppName ; wndclass.lpszClassName =3D szAppName ; =20 if (!RegisterClass (&wndclass)) { MessageBox (NULL, TEXT ("This program requires Windows NT!"), szAppName, MB_ICONERROR) ; return 0 ; } =20 hwnd =3D CreateWindow (szAppName, szAppName, WS_OVERLAPPEDWINDOW, GetSystemMetrics (SM_CXSCREEN) / 4, GetSystemMetrics (SM_CYSCREEN) / 4, GetSystemMetrics (SM_CXSCREEN) / 2, GetSystemMetrics (SM_CYSCREEN) / 2, NULL, NULL, hInstance, NULL) ; =20 ShowWindow (hwnd, iCmdShow) ; UpdateWindow (hwnd) ;=20 =20 hAccel =3D LoadAccelerators (hInstance, szAppName) ; =20 while (GetMessage (&msg, NULL, 0, 0)) { if (!TranslateAccelerator (hwnd, hAccel, &msg)) { TranslateMessage (&msg) ; DispatchMessage (&msg) ; } } return msg.wParam ; } AskConfirmation (HWND hwnd) { return MessageBox (hwnd, TEXT ("Really want to close PopPad2?"), szAppName, MB_YESNO | MB_ICONQUESTION) ; } LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM=20 lParam) { static HWND hwndEdit ; int iSelect, iEnable ; =20 switch (message) { case WM_CREATE: hwndEdit =3D CreateWindow (TEXT ("edit"), NULL, WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSC= ROLL | WS_BORDER | ES_LEFT | ES_MULTILINE | ES_AUTOHSCROLL | ES_AUTOVSCROLL, 0, 0, 0, 0, hwnd, (HMENU) ID_EDIT, ((LPCREATESTRUCT) lParam)->hInstance, NULL)= ; return 0 ; =20 case WM_SETFOCUS: SetFocus (hwndEdit) ; return 0 ; =20 case WM_SIZE:=20 MoveWindow (hwndEdit, 0, 0, LOWORD (lParam), HIWORD (lParam), T= RUE) ; return 0 ; =20 case WM_INITMENUPOPUP: if (lParam =3D=3D 1) { EnableMenuItem ((HMENU) wParam, IDM_EDIT_UNDO, SendMessage (hwndEdit, EM_CANUNDO, 0, 0) ? MF_ENABLED : MF_GRAYED) ; =20 EnableMenuItem ((HMENU) wParam, IDM_EDIT_PASTE, IsClipboardFormatAvailable (CF_TEXT) ? MF_ENABLED : MF_GRAYED) ; =20 iSelect =3D SendMessage (hwndEdit, EM_GETSEL, 0, 0) ; =20 if (HIWORD (iSelect) =3D=3D LOWORD (iSelect)) iEnable =3D MF_GRAYED ; else iEnable =3D MF_ENABLED ; =20 EnableMenuItem ((HMENU) wParam, IDM_EDIT_CUT, iEnable) ; EnableMenuItem ((HMENU) wParam, IDM_EDIT_COPY, iEnable) ; EnableMenuItem ((HMENU) wParam, IDM_EDIT_CLEAR, iEnable) ; return 0 ; } break ; case WM_COMMAND: if (lParam) { if (LOWORD (lParam) =3D=3D ID_EDIT && (HIWORD (wParam) =3D=3D EN_ERRSPACE || HIWORD (wParam) =3D=3D EN_MAXTEXT)) MessageBox (hwnd, TEXT ("Edit control out of space.")= , szAppName, MB_OK | MB_ICONSTOP) ; return 0 ; } else switch (LOWORD (wParam)) { case IDM_FILE_NEW: case IDM_FILE_OPEN: case IDM_FILE_SAVE: case IDM_FILE_SAVE_AS: case IDM_FILE_PRINT: MessageBeep (0) ; return 0 ; =20 case IDM_APP_EXIT: SendMessage (hwnd, WM_CLOSE, 0, 0) ; return 0 ; case IDM_EDIT_UNDO: SendMessage (hwndEdit, WM_UNDO, 0, 0) ; return 0 ; =20 case IDM_EDIT_CUT: SendMessage (hwndEdit, WM_CUT, 0, 0) ; return 0 ; =20 case IDM_EDIT_COPY: SendMessage (hwndEdit, WM_COPY, 0, 0) ; return 0 ; =20 case IDM_EDIT_PASTE: SendMessage (hwndEdit, WM_PASTE, 0, 0) ; return 0 ; =20 case IDM_EDIT_CLEAR: SendMessage (hwndEdit, WM_CLEAR, 0, 0) ; return 0 ; case IDM_EDIT_SELECT_ALL: SendMessage (hwndEdit, EM_SETSEL, 0, -1) ; return 0 ; =20 case IDM_HELP_HELP: MessageBox (hwnd, TEXT ("Help not yet implemented!"), szAppName, MB_OK | MB_ICONEXCLAMATION) ; return 0 ; =20 case IDM_APP_ABOUT: MessageBox (hwnd, TEXT ("POPPAD2 (c) Charles Petzold, 1998= "), szAppName, MB_OK | MB_ICONINFORMATION) ; return 0 ; } break ; =20 case WM_CLOSE: if (IDYES =3D=3D AskConfirmation (hwnd)) DestroyWindow (hwnd) ; return 0 ; =20 case WM_QUERYENDSESSION: if (IDYES =3D=3D AskConfirmation (hwnd)) return 1 ; else return 0 ; =20 case WM_DESTROY: PostQuitMessage (0) ; return 0 ; } return DefWindowProc (hwnd, message, wParam, lParam) ; } *** end of file poppad2.c /////////////////////////////////////// /////////////////////////////////////// *** file poppad2.rc #include "resource.h" POPPAD2 ICON DISCARDABLE "poppad2.ico" POPPAD2 MENU DISCARDABLE=20 BEGIN POPUP "&File" BEGIN MENUITEM "&New", IDM_FILE_NEW MENUITEM "&Open...", IDM_FILE_OPEN MENUITEM "&Save", IDM_FILE_SAVE MENUITEM "Save &As...", IDM_FILE_SAVE_AS MENUITEM SEPARATOR MENUITEM "&Print", IDM_FILE_PRINT MENUITEM SEPARATOR MENUITEM "E&xit", IDM_APP_EXIT END POPUP "&Edit" BEGIN MENUITEM "&Undo\tCtrl+Z", IDM_EDIT_UNDO MENUITEM SEPARATOR MENUITEM "Cu&t\tCtrl+X", IDM_EDIT_CUT MENUITEM "&Copy\tCtrl+C", IDM_EDIT_COPY MENUITEM "&Paste\tCtrl+V", IDM_EDIT_PASTE MENUITEM "De&lete\tDel", IDM_EDIT_CLEAR MENUITEM SEPARATOR MENUITEM "&Select All", IDM_EDIT_SELECT_ALL END POPUP "&Help" BEGIN MENUITEM "&Help...", IDM_HELP_HELP MENUITEM "&About PopPad2...", IDM_APP_ABOUT END END POPPAD2 ACCELERATORS DISCARDABLE =20 BEGIN VK_BACK, IDM_EDIT_UNDO, VIRTKEY, ALT, NOINVERT //line= #38=20 VK_DELETE, IDM_EDIT_CLEAR, VIRTKEY, NOINVERT VK_DELETE, IDM_EDIT_CUT, VIRTKEY, SHIFT, NOINVERT VK_F1, IDM_HELP_HELP, VIRTKEY, NOINVERT VK_INSERT, IDM_EDIT_COPY, VIRTKEY, CONTROL, NOINVERT VK_INSERT, IDM_EDIT_PASTE, VIRTKEY, SHIFT, NOINVERT "^C", IDM_EDIT_COPY, ASCII, NOINVERT "^V", IDM_EDIT_PASTE, ASCII, NOINVERT "^X", IDM_EDIT_CUT, ASCII, NOINVERT "^Z", IDM_EDIT_UNDO, ASCII, NOINVERT END *** end of file poppad2.rc //////////////////////////////////////////// /////////////////////////////////////////// *** file resource.h #define IDM_FILE_NEW 40001 #define IDM_FILE_OPEN 40002 #define IDM_FILE_SAVE 40003 #define IDM_FILE_SAVE_AS 40004 #define IDM_FILE_PRINT 40005 #define IDM_APP_EXIT 40006 #define IDM_EDIT_UNDO 40007 #define IDM_EDIT_CUT 40008 #define IDM_EDIT_COPY 40009 #define IDM_EDIT_PASTE 40010 #define IDM_EDIT_CLEAR 40011 #define IDM_EDIT_SELECT_ALL 40012 #define IDM_HELP_HELP 40013 #define IDM_APP_ABOUT 40014 *** end of file resource.h ///////////////////////////////////////////// -->To show my project options, I think showing you my makefile is the same thing (I think): //////////////////////////////// *** file "makefile.win" # Project: poppad2 # Makefile created by Dev-C++ 4.9.8.0 CPP =3D g++.exe CC =3D gcc.exe WINDRES =3D windres.exe RES =3D poppad2_private.res OBJ =3D poppad2.o $(RES) LINKOBJ =3D poppad2.o $(RES) LIBS =3D -L"C:/Dev-Cpp/lib" -mwindows=20 INCS =3D -I"C:/Dev-Cpp/include"=20 CXXINCS =3D -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw3= 2" - I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include"=20 BIN =3D poppad2.exe CXXFLAGS =3D $(CXXINCS)=20 CFLAGS =3D $(INCS)=20 .PHONY: all all-before all-after clean clean-custom all: all-before poppad2.exe all-after clean: clean-custom rm -f $(OBJ) $(BIN) $(BIN): $(LINKOBJ) $(CC) $(LINKOBJ) -o "poppad2.exe" $(LIBS) poppad2.o: poppad2.c $(CC) -c poppad2.c -o poppad2.o $(CFLAGS) poppad2_private.res: poppad2_private.rc poppad2.rc=20 $(WINDRES) -i poppad2_private.rc -I rc -o poppad2_private.res -O coff=20 *** end of makefile.win ///////////////////////////////// -->The error message after the compilation attempt is: "Line 38 in file poppad2.rc: parse error" -->In Visual C++ the example compiles and runs fine. -->Does anybody know what is the problem? Regards Andre =20 |