dev-cpp-users Mailing List for Dev-C++ (Page 158)
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: george_y <geo...@li...> - 2005-01-03 00:21:31
|
In the following simple program I have to write the code to built a grap=
h in
the .xls output file using the two columns that have been created.=0D
=
Thanks,
George
#include <fstream>
using namespace std=
;
int main()
{
double a[10]=3D {1,2=
,3,4,5,6,7,8,9,10};
double b[10]=3D {11,12,13,14,15,16,17,18,19,20=
};
ofstream fout; =0D
=
fout.open("www.xls");
int n=3D 0;
for(=
n=3D 0; n< 10; n++)
{
fout<< a[n]<<"\t"<<b[n]<<endl;
} =
fout.close();
return 0;
} =0A=0A=
=0A=0A____________________________________________________________=0ARega=
la e regalati Libero ADSL: 3 mesi gratis e navighi veloce. 1.2 Mega di mu=
sica, film, video e sport. =0AAbbonati subito senza costi di attivazione =
su http://www.libero.it=0A=0A
|
|
From: <kre...@go...> - 2005-01-02 16:38:14
|
Hi!=0D
I`m wondering why function (converting constructor declared in my =0D
class like this "Date int()" and then called like this "Date::=0D
Date(int dni=3D0) {...}", sorry I don't know english terminology) is =0D
considered by Project Manager as global instead of class Date =0D
member? :)=0D
I think it is a bug:)=0D
=0D
-- =0D
Best regards,=0D
Maciej Nadolski=0D
kre...@go...
|
|
From: tinca2004 <tin...@li...> - 2005-01-01 18:18:17
|
I'm a beginner C++ programmer and I`m tring to find someone to help me - = maybe as a small remunerative work- make some modifications on the FLTK = example editor, such as insert columns and fixed text-cells by default. = Contact me, thanks Tinca Galli tin...@li...=0A=0A=0A=0A_______= _____________________________________________________=0ARegala e regalati= Libero ADSL: 3 mesi gratis e navighi veloce. 1.2 Mega di musica, film, v= ideo e sport. =0AAbbonati subito senza costi di attivazione su http://www= .libero.it=0A=0A |
|
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 |