dev-cpp-users Mailing List for Dev-C++ (Page 405)
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: Henri G. <hen...@lu...> - 2003-04-05 12:23:50
|
Hi Can someone tell me about the error : [linker error] undefined reference to `__gxx_personality_v0' when compiling some .cpp files, and how to fix it ? Thanks Henri |
|
From: Samuel K. <ib...@ly...> - 2003-04-05 03:04:09
|
Please email your source file. ____________________________________________________________ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus |
|
From: Chauncey W. <cw...@tw...> - 2003-04-05 00:52:55
|
Hi all, I just joined the list, and am also just starting out on windows = programming. =20 I have been able to get my console applications to compile and link just = fine, but with the 2 simple windows programs (beyond Hello World) that I = have made, I have gotten linker problems (compile log included). I = suspect I have to add libraries to the command line, but beyond that I = am pretty lost. I've been googling for a while (probably not looking in = the right places). I'm sure this has been discussed somewhere before, = but my searches on the sourceforge forums have likewise left me high and = dry. Any help would be greatly appreciated. Oh, Dev-C++ v.4.9.7.8 / 3.2 <compile log> Building Makefile: "C:\My Documents\random = code\CWin\random\Makefile.win" Executing make... make.exe -f "C:\My Documents\random code\CWin\random\Makefile.win" all gcc.exe sysmet.o -o "SysMet.exe" -L"C:/Dev-Cpp/lib"=20 sysmet.o(.text+0xc14):sysmet.c: undefined reference to = `GetStockObject@4' sysmet.o(.text+0xd61):sysmet.c: undefined reference to = `GetTextMetricsA@8' sysmet.o(.text+0xe56):sysmet.c: undefined reference to `TextOutA@20' sysmet.o(.text+0xeac):sysmet.c: undefined reference to `TextOutA@20' sysmet.o(.text+0xebc):sysmet.c: undefined reference to `SetTextAlign@8' sysmet.o(.text+0xf1f):sysmet.c: undefined reference to `TextOutA@20' sysmet.o(.text+0xf2f):sysmet.c: undefined reference to `SetTextAlign@8' Execution terminated |
|
From: Tina B. <t_b...@co...> - 2003-04-04 23:41:18
|
I may be misunderstanding what you are asking, but... If you want to view files you have on your computer, this might help = you. =20 I have a program called powerDesk from Ontrack available at = http://www.v-com.com/product/pd_ind.html It has a viewer that allows you to read most files, including the C++ = files. You might want to give it a try. I think they have a trial = version and it's not too expensive to purchase. Another view is = available which I like better through Jasc, although I think they = stopped making it recently. It's called QuickView I believe. Hope this helps, Tina ----- Original Message -----=20 From: jo mateix=20 To: dev...@li...=20 Sent: Friday, April 04, 2003 12:30 PM Subject: Re: [Dev-C++] browsing the source of Standard C++ Libs Try here: http://www.dinkumware.com Sadly, just on line is allowed. Regards, Pere >From: Senthil Rajasekharan <sen...@ya...> >To: dev...@li... >Subject: [Dev-C++] browsing the source of Standard C++ Libs >Date: Thu, 3 Apr 2003 07:08:43 -0800 (PST) > >Hi, > >Does anyone know of a way to browse classes of >Standard C++ Library implementation (either online or >with a compiler distrib such as g++ ) ? > >-Senthil > > _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online=20 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3D3963 ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb:=20 Dedicated Hosting for just $79/mo with 500 GB of bandwidth!=20 No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ 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: Astar <As...@tu...> - 2003-04-04 23:38:12
|
Hello Neszt, Friday, April 4, 2003, 3:41:46 PM, you wrote: NT> Hello! >> In my opinion, it will be better to draw on idle (not WM_PAIMT, but >> when there is no any messages to translate in main loop). and >> synchronize all moving/animation/etc by multiplying step to reciprocal for >> fps. >> I do so, and i have smooth moving/rotation/etc... NT> Yes, it is a solution, I know, but there are some cases, where You can not NT> apply this method. This is solve the slow-quick moovement problem, but not NT> the calling frequency. NT> As I see, I would need a new thread, one for calculating the NT> moving/rotating values, and one for opengl display() :-))) May be you describe for what you need fixed redrawing? cause there is no problem with high/low frequency (non-constant value) if you synchronize animation. only fps must be higher than 30 for non-twitching picture... and if your fps is very high :)) turn on VSync... P.S. second thread - is bad idea, just calculate moving/roatating values each "idle" time... -- Best regards, Astar mailto:As...@tu... |
|
From: Vlada D. <dj...@im...> - 2003-04-04 21:08:31
|
----- Original Message ----- From: "Daniel Glenfield" <sp...@ho...> To: <dj...@im...>; <dev...@li...> Sent: Friday, April 04, 2003 4:15 PM Subject: Re: [Dev-C++] syntax error driving me crazy > Try something like > > img.member > > and see if that works (should be a default of [0]). > > I'm a bit unsure, unfortunately. > > No, doesn't work. Can it be some bug in the compiler? I'm using version 4.9.5.0. > > >From: "Vlada Djurovic" <dj...@im...> > >To: "Daniel Glenfield" > ><sp...@ho...>,<dev...@li...> > >Subject: Re: [Dev-C++] syntax error driving me crazy > >Date: Fri, 4 Apr 2003 14:45:59 +0200 > > > > > >----- Original Message ----- > >From: "Daniel Glenfield" <sp...@ho...> > >To: <dj...@im...>; <dev...@li...> > >Sent: Friday, April 04, 2003 2:25 PM > >Subject: Re: [Dev-C++] syntax error driving me crazy > > > > > > > > > > > > > > > > Have you defined imgs ? Does the compiler know what members are inside > >imgs? > > > > > > >I'm not sure what you mean. imgs is declared as array of TBBUTON > >structures, > >and if I'm right, TBBUTTON is defined in commctrl.h, which is included in > >my > >source file. The compiler didn't complain about TBBUTTON being undefined. I > >also linked comctl32 library. The code is the same as I found on MSDN, so > >I > >think it should work. > > > > > > > >From: "Vlada Djurovic" <dj...@im...> > > > >To: "'DevC++ help'" <dev...@li...> > > > >Subject: [Dev-C++] syntax error driving me crazy > > > >Date: Fri, 4 Apr 2003 13:27:37 +0200 > > > > > > > >Hi. > > > >Can somebody please tell me what is wrong with this peace of code? I > >get > > > >"syntax error before '.'" in every line and can't figure out what's > >wrong. > > > > > > > >TBBUTTON imgs[2]; > > > > > > > >imgs[0].iBitmap=STD_FILENEW; > > > >imgs[0].idCommand=ID_FILE_NEW; > > > >imgs[0].fsState=TBSTATE_ENABLED; > > > >imgs[0].fsStyle=BTNS_BUTTON; > > > >imgs[0].dwData=0; > > > >imgs[0].iString=0; > > > > > > > >imgs[1].iBitmap=STD_FILEOPEN; > > > >imgs[1].idCommand=ID_FILE_OPEN; > > > >imgs[1].fsState=TBSTATE_ENABLED; > > > >imgs[1].fsStyle=BTNS_BUTTON; > > > >imgs[1].dwData=0; > > > >imgs[1].iString=0; > > > > > > > >Thanks. > > > >------------ > > > >Vlada > > > > > > > > > > > > > > > >------------------------------------------------------- > > > >This SF.net email is sponsored by: ValueWeb: > > > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > > > >No other company gives more support or power for your dedicated server > > > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > > > >_______________________________________________ > > > >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 > > > > > > > > > _________________________________________________________________ > > > On the move? Get Hotmail on your mobile phone > >http://www.msn.co.uk/mobile > > > > > > > > _________________________________________________________________ > On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile > |
|
From: jo m. <non...@ho...> - 2003-04-04 20:52:44
|
Try here: http://www.dinkumware.com Sadly, just on line is allowed. Regards, Pere >From: Senthil Rajasekharan <sen...@ya...> >To: dev...@li... >Subject: [Dev-C++] browsing the source of Standard C++ Libs >Date: Thu, 3 Apr 2003 07:08:43 -0800 (PST) > >Hi, > >Does anyone know of a way to browse classes of >Standard C++ Library implementation (either online or >with a compiler distrib such as g++ ) ? > >-Senthil > > _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |
|
From: Ranjith P A. <ran...@co...> - 2003-04-04 18:58:33
|
Wow, that was a stupid question, wasn't it ?. But the same code produced the exact result I wanted
in the MSVC environment.!!!. I never believed compilers have their own mind. Thanks for the tip
sheepishly
ranjith
> you dont always get your first number as 0...
> if you enter a negative number for your first number
> then you get -1 for that number in your output!!....
>
> to read short int---> scanf("%hd",&first).
>
> Ricardo.
|
|
From: Ricardo R. <ri...@un...> - 2003-04-04 17:51:39
|
you dont always get your first number as 0...
if you enter a negative number for your first number
then you get -1 for that number in your output!!....
to read short int---> scanf("%hd",&first).
Ricardo.
|
|
From: Ranjith P A. <ran...@co...> - 2003-04-04 16:57:29
|
Hi all,
I started using DevC++ 4 {The stable release version} recently. I got head up with a problem.
Please see my code below.
#include <stdio.h>
int main()
{
1. short int first, second;
2. printf("Enter first number :");
3. scanf("%d",&first);
4. printf("\nEnter first umbers :");
5. scanf("%d",&second);
6. printf("You entered %d and %d\n",first,second);
7. getch();
8. return 1;
}
According to the program, I entered two numbers. But my first number disappears on line 6. I
always get my first number as 0. If i change the type of variable to "int", I am getting the
answer as I expects. What might be my problem. Any answer to this question is appreciated.
-ranjith
|
|
From: Vlada D. <dj...@im...> - 2003-04-04 16:14:32
|
----- Original Message ----- From: "Igor Pierscinski" <igo...@po...> To: <dev...@li...> Sent: Friday, April 04, 2003 4:31 PM Subject: RE: [Dev-C++] syntax error driving me crazy Hi, Please tell us what was the first syntax error on the list. Regards Igor Pierscinski The first error was: 21 C:\My Documents\Prog\interface\main.cpp syntax error before `.' in the line imgs[0].iBitmap=STD_FILENEW; and then same error occurs in every line. -----Original Message----- From: Vlada Djurovic [mailto:dj...@im...] Sent: Friday, April 04, 2003 2:46 PM To: Daniel Glenfield; dev...@li... Subject: Re: [Dev-C++] syntax error driving me crazy ----- Original Message ----- From: "Daniel Glenfield" <sp...@ho...> To: <dj...@im...>; <dev...@li...> Sent: Friday, April 04, 2003 2:25 PM Subject: Re: [Dev-C++] syntax error driving me crazy > > > > Have you defined imgs ? Does the compiler know what members are inside imgs? > I'm not sure what you mean. imgs is declared as array of TBBUTON structures, and if I'm right, TBBUTTON is defined in commctrl.h, which is included in my source file. The compiler didn't complain about TBBUTTON being undefined. I also linked comctl32 library. The code is the same as I found on MSDN, so I think it should work. > >From: "Vlada Djurovic" <dj...@im...> > >To: "'DevC++ help'" <dev...@li...> > >Subject: [Dev-C++] syntax error driving me crazy > >Date: Fri, 4 Apr 2003 13:27:37 +0200 > > > >Hi. > >Can somebody please tell me what is wrong with this peace of code? I get > >"syntax error before '.'" in every line and can't figure out what's wrong. > > > >TBBUTTON imgs[2]; > > > >imgs[0].iBitmap=STD_FILENEW; > >imgs[0].idCommand=ID_FILE_NEW; > >imgs[0].fsState=TBSTATE_ENABLED; > >imgs[0].fsStyle=BTNS_BUTTON; > >imgs[0].dwData=0; > >imgs[0].iString=0; > > > >imgs[1].iBitmap=STD_FILEOPEN; > >imgs[1].idCommand=ID_FILE_OPEN; > >imgs[1].fsState=TBSTATE_ENABLED; > >imgs[1].fsStyle=BTNS_BUTTON; > >imgs[1].dwData=0; > >imgs[1].iString=0; > > > >Thanks. > >------------ > >Vlada > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: ValueWeb: > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > >No other company gives more support or power for your dedicated server > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > >_______________________________________________ > >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 > > > _________________________________________________________________ > On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile > ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ 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: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ 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: Igor P. <igo...@po...> - 2003-04-04 14:32:03
|
Hi, Please tell us what was the first syntax error on the list. Regards Igor Pierscinski -----Original Message----- From: Vlada Djurovic [mailto:dj...@im...] Sent: Friday, April 04, 2003 2:46 PM To: Daniel Glenfield; dev...@li... Subject: Re: [Dev-C++] syntax error driving me crazy ----- Original Message ----- From: "Daniel Glenfield" <sp...@ho...> To: <dj...@im...>; <dev...@li...> Sent: Friday, April 04, 2003 2:25 PM Subject: Re: [Dev-C++] syntax error driving me crazy > > > > Have you defined imgs ? Does the compiler know what members are inside imgs? > I'm not sure what you mean. imgs is declared as array of TBBUTON = structures, and if I'm right, TBBUTTON is defined in commctrl.h, which is included = in my source file. The compiler didn't complain about TBBUTTON being = undefined. I also linked comctl32 library. The code is the same as I found on MSDN, = so I think it should work. > >From: "Vlada Djurovic" <dj...@im...> > >To: "'DevC++ help'" <dev...@li...> > >Subject: [Dev-C++] syntax error driving me crazy > >Date: Fri, 4 Apr 2003 13:27:37 +0200 > > > >Hi. > >Can somebody please tell me what is wrong with this peace of code? I = get > >"syntax error before '.'" in every line and can't figure out what's wrong. > > > >TBBUTTON imgs[2]; > > > >imgs[0].iBitmap=3DSTD_FILENEW; > >imgs[0].idCommand=3DID_FILE_NEW; > >imgs[0].fsState=3DTBSTATE_ENABLED; > >imgs[0].fsStyle=3DBTNS_BUTTON; > >imgs[0].dwData=3D0; > >imgs[0].iString=3D0; > > > >imgs[1].iBitmap=3DSTD_FILEOPEN; > >imgs[1].idCommand=3DID_FILE_OPEN; > >imgs[1].fsState=3DTBSTATE_ENABLED; > >imgs[1].fsStyle=3DBTNS_BUTTON; > >imgs[1].dwData=3D0; > >imgs[1].iString=3D0; > > > >Thanks. > >------------ > >Vlada > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: ValueWeb: > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > >No other company gives more support or power for your dedicated = server > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > >_______________________________________________ > >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 > > > _________________________________________________________________ > On the move? Get Hotmail on your mobile phone = http://www.msn.co.uk/mobile > ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb:=20 Dedicated Hosting for just $79/mo with 500 GB of bandwidth!=20 No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ 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-04-04 14:16:01
|
Try something like img.member and see if that works (should be a default of [0]). I'm a bit unsure, unfortunately. >From: "Vlada Djurovic" <dj...@im...> >To: "Daniel Glenfield" ><sp...@ho...>,<dev...@li...> >Subject: Re: [Dev-C++] syntax error driving me crazy >Date: Fri, 4 Apr 2003 14:45:59 +0200 > > >----- Original Message ----- >From: "Daniel Glenfield" <sp...@ho...> >To: <dj...@im...>; <dev...@li...> >Sent: Friday, April 04, 2003 2:25 PM >Subject: Re: [Dev-C++] syntax error driving me crazy > > > > > > > > > > Have you defined imgs ? Does the compiler know what members are inside >imgs? > > > >I'm not sure what you mean. imgs is declared as array of TBBUTON >structures, >and if I'm right, TBBUTTON is defined in commctrl.h, which is included in >my >source file. The compiler didn't complain about TBBUTTON being undefined. I >also linked comctl32 library. The code is the same as I found on MSDN, so >I >think it should work. > > > > >From: "Vlada Djurovic" <dj...@im...> > > >To: "'DevC++ help'" <dev...@li...> > > >Subject: [Dev-C++] syntax error driving me crazy > > >Date: Fri, 4 Apr 2003 13:27:37 +0200 > > > > > >Hi. > > >Can somebody please tell me what is wrong with this peace of code? I >get > > >"syntax error before '.'" in every line and can't figure out what's >wrong. > > > > > >TBBUTTON imgs[2]; > > > > > >imgs[0].iBitmap=STD_FILENEW; > > >imgs[0].idCommand=ID_FILE_NEW; > > >imgs[0].fsState=TBSTATE_ENABLED; > > >imgs[0].fsStyle=BTNS_BUTTON; > > >imgs[0].dwData=0; > > >imgs[0].iString=0; > > > > > >imgs[1].iBitmap=STD_FILEOPEN; > > >imgs[1].idCommand=ID_FILE_OPEN; > > >imgs[1].fsState=TBSTATE_ENABLED; > > >imgs[1].fsStyle=BTNS_BUTTON; > > >imgs[1].dwData=0; > > >imgs[1].iString=0; > > > > > >Thanks. > > >------------ > > >Vlada > > > > > > > > > > > >------------------------------------------------------- > > >This SF.net email is sponsored by: ValueWeb: > > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > > >No other company gives more support or power for your dedicated server > > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > > >_______________________________________________ > > >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 > > > > > > _________________________________________________________________ > > On the move? Get Hotmail on your mobile phone >http://www.msn.co.uk/mobile > > > _________________________________________________________________ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile |
|
From: <and...@su...> - 2003-04-04 13:22:05
|
I spoke too much. And the main answer I was looking for was given.
-->Program 2 and Program 3 are correct programs to be used as examples of
passing by reference?
-->I say this, because I prefer Program 2 that doesn´t change the nature
of variables, ok?
-->I repost the codes, ok?
note-1: of course, is not needed the function sum in any of theese programs,
and the c variable, and the res variable! It´s a matter of explanation for
the students. I prefer to use a very simple program to explain some
operation,
beginning from a program that they already know how to write, like sum, to
present a concept not so easy to understand like passing by reference.
note-2: the cast, I explain too: some of them use the oldies Turbo C
and Turbo C++, and to avoid there the compilation error I´d agree to put the
cast.
note-3: the return? I remember that probably in HP-UX, I´m not sure, when I
used
a command-line cc program (without additional command line options) some of
the
compilation results indicated warnings in void functions that didn´t put
a final "return" command.
Regards
Andre
>--__--__--
>
>Message: 1
>From: "Ioannis Vranos" <iv...@em...>
>To: "'Dev-Cpp-Users'" <dev...@li...>
>Subject: RE: [Dev-C++] Passig by Reference Question
>Date: Thu, 3 Apr 2003 21:14:39 +0300
>
>> -----Original Message-----
>> From: dev...@li...
>> [mailto:dev...@li...] On Behalf
>> Of Andr$B&I(B Mac$B&A(Brio Barros
>> Sent: Thursday, April 03, 2003 8:25 PM
>> To: Dev-Cpp-Users
>> Subject: [Dev-C++] Passig by Reference Question
>>
>>
>> Dear Sirs (and Ladies, if you are here),
>>
>> Please, consider the three simple codes as follows:
>>
>> ##############################
>> Program 1:
>> 1 -#include <stdio.h>
>> 2 -#include <stdlib.h>
>> 3 -
>> 4 -int sum(int, int);
>> 5 -
>> 6 -int main()
>> 7 -{
>> 8 - int a, b, c;
>> 9 -
>> 10- printf("Two Numbers Sum\n");
>> 11- printf("Enter First Number-->");
>> 12- scanf("%d", &a);
>> 13- printf("Enter Second Number-->");
>> 14- scanf("%d", &b);
>> 15- c = sum(a,b);
>> 16- printf("Sum of %d with %d is %d\n", a, b, c);
>> 17- system("PAUSE");
>> 18- return 0;
>> 19-}
>> 20-
>> 21-int sum(int op1, int op2)
>> 22-{
>> 23- int res;
>> 24-
>> 25- res = op1 + op2;
>> 26- return(res);
>
>
>or return op1+op2; directly (but in reality sum() is not needed anyway).
>
>
>> 27-}
>> ##############################
>> Program 2:
>> 1 -#include <stdio.h>
>> 2 -#include <stdlib.h>
>> 3 -
>> 4 -void sum(int, int, int *);
>> 5 -
>> 6 -int main()
>> 7 -{
>> 8 - int a, b, c;
>> 9 -
>> 10- printf("Two Numbers Sum\n");
>> 11- printf("Enter First Number-->");
>> 12- scanf("%d", &a);
>> 13- printf("Enter Second Number-->");
>> 14- scanf("%d", &b);
>> 15- sum(a, b, &c);
>> 16- printf("The Sum of %d with %d is %d\n", a, b, c);
>> 17- system("PAUSE");
>> 18- return 0;
>> 19-}
>> 20-
>> 21-void sum(int op1, int op2, int *res)
>> 22-{
>> 23- *res = op1 + op2;
>> 24-
>> 25- return;
>
>
>return statement is not needed here.
>
>
>
>> 26-}
>> ##############################
>> Program 3:
>> 1 -#include <stdio.h>
>> 2 -#include <stdlib.h>
>> 3 -
>> 4 -void sum(int, int, int *);
>> 5 -
>> 6 -int main()
>> 7 -{
>> 8 - int a, b, *c;
>> 9 -
>> 10- c=(int *) malloc(sizeof(int));
>
>
>Casting after malloc(), calloc() and realloc() IS NOT needed in C. K&R2
uses
>casting because they tried the code in that time Storustrup's C++ compiler.
>K&R2 also doesn't place a return statement before the end of main() which
>was not proper C90. I assume that at least the first was fixed in later
>editions.
>
>
>So the above should be:
>
>c=malloc(sizeof(int));
>
>or (better):
>
>c=malloc(sizeof(*c));
>
>
>
>
>
>> 11- printf("Two Numbers Sum\n");
>> 12- printf("Enter First Number-->");
>> 13- scanf("%d", &a);
>> 14- printf("Enter Second Number-->");
>> 15- scanf("%d", &b);
>> 16- sum(a, b, c);
>> 17- printf("The Sum of %d with %d is %d\n", a, b, *c);
>> 18- system("PAUSE");
>> 19- return 0;
>> 20-}
>> 21-
>> 22-void sum(int op1, int op2, int *res)
>> 23-{
>> 24- *res = op1 + op2;
>> 25- return;
>
>
>return; not needed.
>
>
>
>> 26-}
>> ################
>> Fight Between Programmers Scenario:
>> A-I prefer to use program 2 instead of program 3 to
>> demonstrate the way how
>> to use passing
>> by reference over the original passing by value program 1.
>> I prefer it
>> because I find this
>> kind of manipulation in the books and itsn$B!-(Bt necessary to change
the
>> nature of the variables
>> (c integer variable in this case- look for line 8 in P2 and
>> line 8 in P3);
>> B-If we are already inside a function, and this function
>> needs to pass a
>> pointer variable to
>> other funcion, ok, is only use a passing way like line 16
>> of Program 3
>> (integer pointer c
>> variable in this case).
>> ################
>> My Question:
>> Q1-Are both Programs, 2 and 3, correct? Please comment.
>> Q2-Any opposition about my opinion in "A" Scenario?
>> Q3-Any opposition about my opinion in "B" Scenario?
>> Q4-Any additional comments?
>
>
>See my comments above.
>
>
>
>
>Ioannis Vranos
>
>* Programming pages: http://www.noicys.freeurl.com
>* Alternative URL: http://run.to/noicys
>
>
>Anti-racism movement: http://www.positive-youthfoundation.org
>Iraq Peace Pledge: http://www.peacepledge.org
>
>
|
|
From: <ma...@cm...> - 2003-04-04 13:00:19
|
Hi. I have a problem with Dev-C++ 4.9.8.0 I tried to use the GDI application sample, but the compiler breakes with error "unable to run programm file". How can i make this sample run? |
|
From: Vlada D. <dj...@im...> - 2003-04-04 12:47:47
|
----- Original Message ----- From: "Daniel Glenfield" <sp...@ho...> To: <dj...@im...>; <dev...@li...> Sent: Friday, April 04, 2003 2:25 PM Subject: Re: [Dev-C++] syntax error driving me crazy > > > > Have you defined imgs ? Does the compiler know what members are inside imgs? > I'm not sure what you mean. imgs is declared as array of TBBUTON structures, and if I'm right, TBBUTTON is defined in commctrl.h, which is included in my source file. The compiler didn't complain about TBBUTTON being undefined. I also linked comctl32 library. The code is the same as I found on MSDN, so I think it should work. > >From: "Vlada Djurovic" <dj...@im...> > >To: "'DevC++ help'" <dev...@li...> > >Subject: [Dev-C++] syntax error driving me crazy > >Date: Fri, 4 Apr 2003 13:27:37 +0200 > > > >Hi. > >Can somebody please tell me what is wrong with this peace of code? I get > >"syntax error before '.'" in every line and can't figure out what's wrong. > > > >TBBUTTON imgs[2]; > > > >imgs[0].iBitmap=STD_FILENEW; > >imgs[0].idCommand=ID_FILE_NEW; > >imgs[0].fsState=TBSTATE_ENABLED; > >imgs[0].fsStyle=BTNS_BUTTON; > >imgs[0].dwData=0; > >imgs[0].iString=0; > > > >imgs[1].iBitmap=STD_FILEOPEN; > >imgs[1].idCommand=ID_FILE_OPEN; > >imgs[1].fsState=TBSTATE_ENABLED; > >imgs[1].fsStyle=BTNS_BUTTON; > >imgs[1].dwData=0; > >imgs[1].iString=0; > > > >Thanks. > >------------ > >Vlada > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: ValueWeb: > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > >No other company gives more support or power for your dedicated server > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > >_______________________________________________ > >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 > > > _________________________________________________________________ > On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile > |
|
From: Neszt T. <ne...@ss...> - 2003-04-04 12:40:51
|
Hello! > In my opinion, it will be better to draw on idle (not WM_PAIMT, but > when there is no any messages to translate in main loop). and > synchronize all moving/animation/etc by multiplying step to reciprocal for > fps. > I do so, and i have smooth moving/rotation/etc... Yes, it is a solution, I know, but there are some cases, where You can not apply this method. This is solve the slow-quick moovement problem, but not the calling frequency. As I see, I would need a new thread, one for calculating the moving/rotating values, and one for opengl display() :-))) Thanx Your reply, Regards, Tibor |
|
From: Lambdabit - J. G. S. <jg...@ep...> - 2003-04-04 12:26:38
|
Hola Necesito crear un programa para monitorear una Red de Area Local - LAN. = Pero no se c=F3mo obtener la velocidad de conexi=F3n del adaptador de = red - NIC, y el n=FAmero de paquetes enviados y de paquetes recibidos.=20 Muchas gracias a todos los que me puedan ayudar en esto. |
|
From: Daniel G. <sp...@ho...> - 2003-04-04 12:25:48
|
Have you defined imgs ? Does the compiler know what members are inside imgs? >From: "Vlada Djurovic" <dj...@im...> >To: "'DevC++ help'" <dev...@li...> >Subject: [Dev-C++] syntax error driving me crazy >Date: Fri, 4 Apr 2003 13:27:37 +0200 > >Hi. >Can somebody please tell me what is wrong with this peace of code? I get >"syntax error before '.'" in every line and can't figure out what's wrong. > >TBBUTTON imgs[2]; > >imgs[0].iBitmap=STD_FILENEW; >imgs[0].idCommand=ID_FILE_NEW; >imgs[0].fsState=TBSTATE_ENABLED; >imgs[0].fsStyle=BTNS_BUTTON; >imgs[0].dwData=0; >imgs[0].iString=0; > >imgs[1].iBitmap=STD_FILEOPEN; >imgs[1].idCommand=ID_FILE_OPEN; >imgs[1].fsState=TBSTATE_ENABLED; >imgs[1].fsStyle=BTNS_BUTTON; >imgs[1].dwData=0; >imgs[1].iString=0; > >Thanks. >------------ >Vlada > > > >------------------------------------------------------- >This SF.net email is sponsored by: ValueWeb: >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! >No other company gives more support or power for your dedicated server >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ >_______________________________________________ >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 _________________________________________________________________ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile |
|
From: Luigi S. <gi...@li...> - 2003-04-04 12:16:18
|
On Thu, Apr 03, 2003 at 10:18:22AM -0300, Juliano P=E1vel Brasil Cust=F3d=
io wrote:
> [..]
> 1-Why does gcc for unix tell me "gets" is a dangerous function?
You already got an answer to this question
> 2-What exactly is the difference between the <ENTER> key stroke of unix=
and
> of windows? I often have problems with it when I read two consecutive v=
alues
> for example:
> for(i=3D0;i<5;i++)
> scanf("%c",&a);
> In the example above, I've tried to use "fflush(stdin), but it seem=
ed to
> have no effect. The one thing that worked fine was something like:
> for(i=3D0;i<5;i++)
> {
> scanf("%c",&a);
> getchar(); //strange getchar(). Would it be to read some extra
> character of the Unix <ENTER>?
> }
> [..]
The newline character is translated (by the editor you are using) into wh=
at=20
is appropriate for the underlying OS, for instance: LF on Unix/Linux,=20
CRLF on Dos/Windows.
However, I think that this is not the point here, in fact you seem to be
concerned with reading characters from a stream. Probably the following
may be of help.
When you use the format "%c" *all* characters found on the stream are
read (even white-spaces, for instance '\n'), if instead you wish to skip
white-spaces, the format "%1s" should be used.
Example:=20
Suppose that the file "data" contains the following 2 rows:
a b
c d
Remarks: the command "od -cb data" outputs the following 3 rows:
0000000 a b \n c \t d \n
141 040 142 012 143 011 144 012
0000010
Now if you read the file "data" using:
...
char c;
while (scanf("%c", &c) !=3D EOF)
print("'%c'\n", c);
...
You will see echoed all characters (one on each line), including
the space (octal code 040), the newlines and the tab.=20
Instead if you use:
...
char s[] =3D "\0"; /* 2 chars, both are '\0' */
while (scanf("%1s", s) !=3D EOF)
print("'%c'\n", *s);
...
You will only see the letters "a, b, c, d" (one per line).
--=20
>> gisan >>
|
|
From: Vlada D. <dj...@im...> - 2003-04-04 11:29:17
|
Hi. Can somebody please tell me what is wrong with this peace of code? I get "syntax error before '.'" in every line and can't figure out what's wrong. TBBUTTON imgs[2]; imgs[0].iBitmap=STD_FILENEW; imgs[0].idCommand=ID_FILE_NEW; imgs[0].fsState=TBSTATE_ENABLED; imgs[0].fsStyle=BTNS_BUTTON; imgs[0].dwData=0; imgs[0].iString=0; imgs[1].iBitmap=STD_FILEOPEN; imgs[1].idCommand=ID_FILE_OPEN; imgs[1].fsState=TBSTATE_ENABLED; imgs[1].fsStyle=BTNS_BUTTON; imgs[1].dwData=0; imgs[1].iString=0; Thanks. ------------ Vlada |
|
From: Ioannis V. <iv...@em...> - 2003-04-04 05:52:08
|
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Juliano P=E1vel Brasil Cust=F3dio
> Sent: Thursday, April 03, 2003 4:18 PM
> To: Dev-Cpp-Users (dev...@li...
> Subject: [Dev-C++] c on unix
>=20
>=20
> Hello to everybody. I know this isn't a pure c/c++=20
> programming list (it
> s more a c++ plus dev-c++ programming list, right?) but maybe=20
> some of you
> could help me with this:
>=20
> 1-Why does gcc for unix tell me "gets" is a dangerous function?
Because you can't limit the input to the characters that the provided =
buffer
can hold. Example:
#include <stdio.h>
/* ... */
chas s[10];
/* imagine that you enter 50 characters... */
gets(s);
>=20
> 2-What exactly is the difference between the <ENTER> key=20
> stroke of unix and
> of windows? I often have problems with it when I read two=20
> consecutive values
> for example:
>=20
> for(i=3D0;i<5;i++)
>=20
> scanf("%c",&a);
>=20
> In the example above, I've tried to use "fflush(stdin),=20
> but it seemed to
> have no effect.=20
fflush(stdin); is not portable (is not guaranteed to work). fflush() is
intended for *output* streams.
The one thing that worked fine was something like:
>=20
> for(i=3D0;i<5;i++)
>=20
> {
>=20
> scanf("%c",&a);
>=20
> getchar(); //strange getchar(). Would it be to read some extra
> character of the Unix <ENTER>?
>=20
> }
getchar() reads a character including '\n' (*after* '\n' has been =
entered).
In the above code, '\n' remains in the stream (scanf() doesn't read the
'\n').
>=20
> I hope my second doubt isn't too confusing.
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: Ioannis V. <iv...@em...> - 2003-04-04 03:52:44
|
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Juliano P=E1vel Brasil Cust=F3dio
> Sent: Thursday, April 03, 2003 4:18 PM
> To: Dev-Cpp-Users (dev...@li...
> Subject: [Dev-C++] c on unix
>=20
>=20
> Hello to everybody. I know this isn't a pure c/c++=20
> programming list (it
> s more a c++ plus dev-c++ programming list, right?) but maybe=20
> some of you
> could help me with this:
>=20
> 1-Why does gcc for unix tell me "gets" is a dangerous function?
Because you can't limit the input to the characters that the provided =
buffer
can hold. Example:
#include <stdio.h>
/* ... */
chas s[10];
/* imagine that you enter 50 characters... */
gets(s);
>=20
> 2-What exactly is the difference between the <ENTER> key=20
> stroke of unix and
> of windows? I often have problems with it when I read two=20
> consecutive values
> for example:
>=20
> for(i=3D0;i<5;i++)
>=20
> scanf("%c",&a);
>=20
> In the example above, I've tried to use "fflush(stdin),=20
> but it seemed to
> have no effect.=20
fflush(stdin); is not portable (is not guaranteed to work). fflush() is
intended for *output* streams.
The one thing that worked fine was something like:
>=20
> for(i=3D0;i<5;i++)
>=20
> {
>=20
> scanf("%c",&a);
>=20
> getchar(); //strange getchar(). Would it be to read some extra
> character of the Unix <ENTER>?
>=20
> }
getchar() reads a character including '\n' (*after* '\n' has been =
entered).
In the above code, '\n' remains in the stream (scanf() doesn't read the
'\n').
>=20
> I hope my second doubt isn't too confusing.
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
Anti-racism movement: http://www.positive-youthfoundation.org
Iraq Peace Pledge: http://www.peacepledge.org
|
|
From: Daniel K. O. <dan...@ya...> - 2003-04-04 03:48:06
|
> 1-Why does gcc for unix tell me "gets" is a dangerous function?
Simple answer: buffer overflow. Look at fgets.
> 2-What exactly is the difference
> between the <ENTER> key stroke of unix and
> of windows? I often have problems with it when I read two
> consecutive values
> for example: for(i=0;i<5;i++) scanf("%c",&a);
> In the example above, I've tried to use "fflush(stdin), but it seemed to
> have no effect. The one thing that worked fine was something
> like: for(i=0;i<5;i++) { scanf("%c",&a);
> getchar(); //strange getchar(). Would it be to read some extra
> character of the Unix <ENTER>? }
Ioannis said to me once: "fflush empties output buffers, not input". sscanf
doesn't read the remaining '\n'. You should use fgets to read a line
(including the '\n', no need to fflush anything), then sscanf what you need
inside the string.
Daniel K. O.
It's OK to be ignorant; it's not OK to play stupid.
http://www.catb.org/~esr/faqs/smart-questions.html
|
|
From: Juliano P. B. C. <jp...@bo...> - 2003-04-04 01:46:30
|
Hello to everybody. I know this isn't a pure c/c++ programming list (=
it
s more a c++ plus dev-c++ programming list, right?) but maybe some of you
could help me with this:=0D
1-Why does gcc for unix tell me "gets" is a dangerous function?=0D
2-What exactly is the difference between the <ENTER> key stroke of unix a=
nd
of windows? I often have problems with it when I read two consecutive val=
ues
for example:=0D
for(i=3D0;i<5;i++)=0D
scanf("%c",&a);=0D
In the example above, I've tried to use "fflush(stdin), but it seemed=
to
have no effect. The one thing that worked fine was something like:=0D
for(i=3D0;i<5;i++)=0D
{=0D
scanf("%c",&a);=0D
getchar(); //strange getchar(). Would it be to read some extra
character of the Unix <ENTER>?=0D
}=0D
I hope my second doubt isn't too confusing.=0D
=0D
Thanks to all.=0D
Juliano=0D
=0D
***********************=0D
Visite tamb=E9m meu site: =0D
http://www.jpavel.kit.net =0D
=20
|