dev-cpp-users Mailing List for Dev-C++ (Page 4)
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
(18) |
2
(3) |
3
(5) |
4
(10) |
5
(2) |
6
(15) |
7
(10) |
8
(17) |
9
(28) |
10
(9) |
11
(20) |
12
(27) |
13
(16) |
14
(2) |
15
(5) |
16
(11) |
17
(6) |
18
(10) |
19
(21) |
20
(24) |
21
(15) |
22
(13) |
23
(26) |
24
(8) |
25
(9) |
26
(11) |
27
(13) |
28
(3) |
29
(4) |
30
(26) |
|
|
|
|
|
From: Abhijit S. <mu...@gm...> - 2003-06-23 18:33:40
|
Regarding my last post, sorry for repeating what everyone had already said. I had just clicked `Send' when I noticed that many others had previously replied. ONT. This being the Dev-C++ mailing-list, I have to mention that Dev has short-cuts for doing this: Ctrl-Alt-. comments, Ctrl-alt-, strips. This can be found under the `Edit' menu. -- Abhijit Shylanath Homepage: http://mudeth.tripod.com/ |
From: Abhijit S. <mu...@gm...> - 2003-06-23 18:29:19
|
> Yes, you have to use "//" in the beginning of each line you want > to comment. This being the Dev-C++ mailing-list, I have to mention that Dev has short-cuts for doing this: Ctrl-Alt-. comments, Ctrl-alt-, strips. This can be found under the `Edit' menu. -- Abhijit Shylanath Homepage: http://mudeth.tripod.com/ |
From: Abhijit S. <mu...@gm...> - 2003-06-23 18:25:27
|
Hello. A I M V B > > Suppose you can´t use the /* and */ comment delimiters > > to put in comments > > an area of a code in C++. > > > Why? I think he meant that he thought that /*-*/ should be used only in C. That's not the case. It can be used in C++ source also. > > If I use the // command, must I put them in each line > > of this piece of > > code? > Yes. > > Is there another way? > No. Actually, there is: #if 0 // That's a zero foo(); etc(); #endif This has the advantage of not having the disadvantage had by nested /* */ comments: /* /* blah */ and */ ^ Comment ends here (unless your compiler supports nested comments, which is not an ANSI/ISO requirement. -- Abhijit Shylanath Homepage: http://mudeth.tripod.com/ |
From: Brian A. <bri...@gm...> - 2003-06-23 17:26:37
|
Well, here's the part that works... ================================ bja3622@ANN /c/wx/samples/minimal $ make -f makefile.unx c++ -c `wx-config --cxxflags` -o minimal.o minimal.cpp c++ -o minimal minimal.o `wx-config --libs` ================================ and my flags look like this :: bja3622@ANN /c/wx/samples/minimal $ wx-config --cxxflags -I/usr/local/lib/wx/include/mswd-2.5 -D__WXDEBUG__ -D__WXMSW__ -mthreads -fno-pcc-struct-return bja3622@ANN /c/wx/samples/minimal $ wx-config --libs -L/usr/local/lib -Wl,--subsystem,windows -mwindows -mthreads /usr/local/lib/libwxmsw250d.a -ltiff -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32 ================================ And this is the make output from Dev-Cpp $ make -f makefile.win g++.exe -c minimal.cpp -o minimal.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"C:/msys/1.0/local/include" -I"C:/msys/1.0/local/lib/wx/include/mswd-2.5" -D__WXDEBUG__ -D__WXMSW__ -D__GNUWIN32__ -mthreads -fno-pcc-struct-return windres.exe -i Project2_private.rc -I rc -o Project2_private.res -O coff --include-dir C:/msys/1.0/local/include g++.exe minimal.o Project2_private.res -o "Project2.exe" -L"C:/Dev-Cpp/lib" -L"C:/msys/1.0/local/lib/wx" -mwindows -Wl,--subsystem,windows -mwindows -mthreads C:/wx/mswd/lib/libwxmsw250d.a -ltiff -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32 ================================ Aside from the inclusion of -D__GNUWIN32__ the compiler options are the same (plus a bunch of include directories, maybe relevant, maybe not...I don't know how to tell) Same story with the libs too...the only difference is the -L"..." flags.... I guess the culprit must be right here.... Brian Ackermann Yeoh HS wrote: >----- Original Message ----- >From: "Brian Ackermann" <bri...@gm...> >To: <dev...@li...> >Sent: Friday, June 20, 2003 10:14 PM >Subject: Re: [Dev-C++] FREE download: a HOW-TO use wxWindows with Dev-C++ > > > > >>Yeoh, and others >> >>I've done according to the instructions in this document, and, >>unfortunately I get the same problem I had gotten before. The >>application compiles (but Dev-Cpp cannot run it, I must go through the >>explorer for that...) but when it executes, immediately it generates an >>error >> >>The exception unknown software exception (0xc00000fd) occurred in the >>application at location 0x0040d40d. >> >>However, the application will compile if I do a "make -f makefile.unx" >>the application compiles AND RUNS just fine.... >> >>Where am I going wrong? >> >>Brian Ackermann >> >> >> >> >Hi Brian, > >I see from your compile log that you've built the debug version of version >2.5.0. When you created your Dev-C++ project, where did you get the compiler >defines and linker flags? Is it from the wx-config file? > >When you do "make -f makefile.unx", the wx-config file is used in the build >process. >Since this works, you might want to take a look at wx-config file to see the >compiler defines and linker flags and compare them with your Dev-C++ project >settings. > >Best Regards, >Yeoh >-- >P.S. I'm off on a trip, so will be away from the pc for a week or so. :-) > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: INetU >Attention Web Developers & Consultants: Become An INetU Hosting Partner. >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >_______________________________________________ >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-06-23 12:28:13
|
I'm not entirely sure of the syntax but... In DOS (command prompt) you can do nmake DebugBuild > LPT1 to send output of the DebugBuild "build" to the printer attached to LPT1. I'm not sure about how you could tie this in with your project though... >From: Dondolo Mpho <MDo...@OL...> >To: dev...@li... >Subject: [Dev-C++] WRITING TO SERIAL PORT >Date: Mon, 23 Jun 2003 10:23:36 +0200 > >Hi all, > >I have been playing around with streams and need the following help. >I am able to print my files to our network printer and also write them to >specific network drives. >How do I write a device in one of my ports...eg, serial port >consider this code as an example. > > > >ofstream create(" \\omcwca054\\HPLJ5000 <file://\\omcwca054\\HPLJ5000> ") >cout<<"The following will be printed to on lazer jet printer"; >create<<" Mpho Dondolo\n" > <<" 45 Durban Ridge\n" > <<"Tyger Valley\n"; >create.close(); > >I want to write to my matrix display board that is connected to my serial >port. > >NB!!!! Please do not flip if have not supplied sufficient info. ( last i >did >that, some guy almost had a heart attack) I am still new at this game > > _________________________________________________________________ Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile |
From: Daniel G. <sp...@ho...> - 2003-06-23 12:21:24
|
#if 0 cout << "This code will not be compiled, but I don't know if it needs to be syntactically correct or not. Probably does" << endl; #endif Yes I know I've forgotten to #include the iostream header. >From: "Damien ." <g_...@ho...> >To: dev...@li... >Subject: Re: [Dev-C++] Comment Delimiters >Date: Mon, 23 Jun 2003 06:41:24 -0400 > >Guys, How exactly does '#if 0' ...#endif work? I assumed that the >preprocessor would skip the statements until it reached the #endif. >However, when I tried to compile the code(with gcc 3.2.2) below , i get a >"missing terminator character ' error" . It seems as though the code >inside of an #if 0...#endif statement must be C/C++ accurate. It is easy >fixed with a /*... */ .Care to elaborate....? >/* IfZero.c */ >#include <stdio.h> >int main(void) >{ >#if 0 >This line should not be worried about. I'm quite sure it will *not* be >included. >#endif >printf("..."); >return 0; >} > >----Original Message Follows---- >From: "Daniel Glenfield" <sp...@ho...> >To: or...@vp..., dev...@li... >Subject: Re: [Dev-C++] Comment Delimiters >Date: Mon, 23 Jun 2003 09:16:30 +0100 > >Agreed. #if 0 ..#endif is a great way of doing it. > > >>From: OROSZI Balázs <or...@vp...> >>To: dev...@li... >>Subject: Re: [Dev-C++] Comment Delimiters >>Date: Mon, 23 Jun 2003 10:01:54 +0200 >> >>André Macário Barros wrote: >>>Dear Users, >>> >>> Suppose you can´t use the /* and */ comment delimiters to put in >>>comments >>>an area of a code in C++. >>> If I use the // command, must I put them in each line of this piece of >>>code? >>> Is there another way? >> >>There is a quick way: >> >>#if 0 >>... >>#endif >> >>Because "0" is "false", #if 0 can be considered like if (false){...}, >>which will in fact, never execute. So all code, with or without comments, >>will not be parsed by the C preprocessor there. >> >>This approach is also better, because /* */ comments cannot be nested. >> >>-- >>Greetings, >> Balázs >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: INetU >>Attention Web Developers & Consultants: Become An INetU Hosting Partner. >>Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >>INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >>_______________________________________________ >>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/msnmobile > > > >------------------------------------------------------- >This SF.Net email is sponsored by: INetU >Attention Web Developers & Consultants: Become An INetU Hosting Partner. >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >_______________________________________________ >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 > >_________________________________________________________________ >The new MSN 8: advanced junk mail protection and 2 months FREE* >http://join.msn.com/?page=features/junkmail > > > >------------------------------------------------------- >This SF.Net email is sponsored by: INetU >Attention Web Developers & Consultants: Become An INetU Hosting Partner. >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >_______________________________________________ >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 _________________________________________________________________ Find a cheaper internet access deal - choose one to suit you. http://www.msn.co.uk/internetaccess |
From: Per W. <pw...@ia...> - 2003-06-23 11:56:17
|
Normally you can put just about anything within the #ifdef/#endif or #if/#endif block - except that you should be a bit carefull about lines that ends with a \ or lines that start with #. Even in a undefined block, the preprocessor will expect \ at the end of the line to mean a line-continuation with, if the next source line contains the #endif will spell trouble. Since the compiler supports nested #ifdef constructs, any #ifdef, #if, #else, #endif etc. might seriously affect the size of the deactivated block. /Per W On Mon, 23 Jun 2003, Damien . wrote: > Guys, How exactly does '#if 0' ...#endif work? I assumed that the > preprocessor would skip the statements until it reached the #endif. > However, when I tried to compile the code(with gcc 3.2.2) below , i get = a > "missing terminator character ' error" . It seems as though the code ins= ide > of an #if 0...#endif statement must be C/C++ accurate. It is easy fixed > with a /*... */ .Care to elaborate....? > /* IfZero.c */ > #include <stdio.h> > int main(void) > { > #if 0 > This line should not be worried about. I'm quite sure it will *not* be > included. > #endif > printf("..."); > return 0; > } > > ----Original Message Follows---- > From: "Daniel Glenfield" <sp...@ho...> > To: or...@vp..., dev...@li... > Subject: Re: [Dev-C++] Comment Delimiters > Date: Mon, 23 Jun 2003 09:16:30 +0100 > > Agreed. #if 0 ..#endif is a great way of doing it. > > > >From: OROSZI Bal=E1zs <or...@vp...> > >To: dev...@li... > >Subject: Re: [Dev-C++] Comment Delimiters > >Date: Mon, 23 Jun 2003 10:01:54 +0200 > > > >Andr=E9 Mac=E1rio Barros wrote: > >>Dear Users, > >> > >>=09Suppose you can=B4t use the /* and */ comment delimiters to put in c= omments > >>an area of a code in C++. > >>=09If I use the // command, must I put them in each line of this piece = of > >>code? > >> Is there another way? > > > >There is a quick way: > > > >#if 0 > >... > >#endif > > > >Because "0" is "false", #if 0 can be considered like if (false){...}, wh= ich > >will in fact, never execute. So all code, with or without comments, will > >not be parsed by the C preprocessor there. > > > >This approach is also better, because /* */ comments cannot be nested. > > > >-- > >Greetings, > > Bal=E1zs > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by: INetU > >Attention Web Developers & Consultants: Become An INetU Hosting Partner. > >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > >_______________________________________________ > >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/msnmob= ile > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > 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 > > _________________________________________________________________ > The new MSN 8: advanced junk mail protection and 2 months FREE* > http://join.msn.com/?page=3Dfeatures/junkmail > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Per W. <pw...@ia...> - 2003-06-23 11:44:16
|
Yes, it is always good to have definned coding rules for new projects, but: 1 - /* */ doesn't support nesting except for some compilers. 2 - it is not uncommon for a project to inherrit code, and that code might use /* */ or might even be in C. The only two safe methods of deactivating a large block of code is to either delete the lines, or to #ifdef them. With good source control, the code delete is preferable since it's WYSIWYG. However, a lot of people doesn't use CVS or SourceSafe et. al at home, and then it is very easy to permanently loose deleted code lines. /Per W On Mon, 23 Jun 2003, Ioannis Vranos wrote: > > -----Original Message----- > > From: Per Westermark [mailto:pw...@ia...] On Behalf > > Of Per Westermark > > Sent: Monday, June 23, 2003 11:56 AM > > To: Ioannis Vranos > > Cc: 'Dev-Cpp-Users' > > Subject: RE: [Dev-C++] Comment Delimiters > > > > > > Often the one asking a question don't really know exactly > > what they want - > > or at least doesn't specify it clearly enough. > > > > Yes, multiline comments should of course use /* ... */ but > > very often when > > someone gets bothered about commenting away a large number of > > lines, they > > are not thinking about a big block-comment, but a large block > > of unwanted > > code. > > > I did not understand what you mean but a very good commenting style is this: > > > For comments use only //. > > Use /* */ only for debugging purposes. > > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL 1: http://run.to/noicys > * Alternative URL 2: http://www.noicys.cjb.net > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > 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: Damien . <g_...@ho...> - 2003-06-23 10:41:30
|
Guys, How exactly does '#if 0' ...#endif work? I assumed that the preprocessor would skip the statements until it reached the #endif. However, when I tried to compile the code(with gcc 3.2.2) below , i get a "missing terminator character ' error" . It seems as though the code inside of an #if 0...#endif statement must be C/C++ accurate. It is easy fixed with a /*... */ .Care to elaborate....? /* IfZero.c */ #include <stdio.h> int main(void) { #if 0 This line should not be worried about. I'm quite sure it will *not* be included. #endif printf("..."); return 0; } ----Original Message Follows---- From: "Daniel Glenfield" <sp...@ho...> To: or...@vp..., dev...@li... Subject: Re: [Dev-C++] Comment Delimiters Date: Mon, 23 Jun 2003 09:16:30 +0100 Agreed. #if 0 ..#endif is a great way of doing it. >From: OROSZI Balázs <or...@vp...> >To: dev...@li... >Subject: Re: [Dev-C++] Comment Delimiters >Date: Mon, 23 Jun 2003 10:01:54 +0200 > >André Macário Barros wrote: >>Dear Users, >> >> Suppose you can´t use the /* and */ comment delimiters to put in comments >>an area of a code in C++. >> If I use the // command, must I put them in each line of this piece of >>code? >> Is there another way? > >There is a quick way: > >#if 0 >... >#endif > >Because "0" is "false", #if 0 can be considered like if (false){...}, which >will in fact, never execute. So all code, with or without comments, will >not be parsed by the C preprocessor there. > >This approach is also better, because /* */ comments cannot be nested. > >-- >Greetings, > Balázs > > > >------------------------------------------------------- >This SF.Net email is sponsored by: INetU >Attention Web Developers & Consultants: Become An INetU Hosting Partner. >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >_______________________________________________ >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/msnmobile ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ 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 _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |
From: Ioannis V. <iv...@em...> - 2003-06-23 09:51:27
|
> -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] On Behalf=20 > Of Per Westermark > Sent: Monday, June 23, 2003 11:56 AM > To: Ioannis Vranos > Cc: 'Dev-Cpp-Users' > Subject: RE: [Dev-C++] Comment Delimiters >=20 >=20 > Often the one asking a question don't really know exactly=20 > what they want - > or at least doesn't specify it clearly enough. >=20 > Yes, multiline comments should of course use /* ... */ but=20 > very often when > someone gets bothered about commenting away a large number of=20 > lines, they > are not thinking about a big block-comment, but a large block=20 > of unwanted > code. I did not understand what you mean but a very good commenting style is = this: For comments use only //. Use /* */ only for debugging purposes. Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
From: <qa...@ho...> - 2003-06-23 09:36:13
|
I came across this link, http://www.intelinfo.com/free_computer_books.html,= today when I was surfing. I havn't tried to download any book but there= might be some books that will be usefull to you. /J=F6rgen |
From: Per W. <pw...@ia...> - 2003-06-23 08:55:06
|
Often the one asking a question don't really know exactly what they want - or at least doesn't specify it clearly enough. Yes, multiline comments should of course use /* ... */ but very often when someone gets bothered about commenting away a large number of lines, they are not thinking about a big block-comment, but a large block of unwanted code. /Per W On Mon, 23 Jun 2003, Ioannis Vranos wrote: > I accidentally erased Per Westermark's email so I reply without part of his > message. > > > Why use compilation under condition for comments in C++? > > The best approach on comments in C++ is to use always // for comments, and > use /* */ only for debugging purposes (to comment out blocks of code). > > > > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL 1: http://run.to/noicys > * Alternative URL 2: http://www.noicys.cjb.net > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Per W. <pw...@ia...> - 2003-06-23 08:33:52
|
In short, crate a DIB - device-indenepdant bitmap - and then blit it to the screen. /Per W On Mon, 23 Jun 2003, Daniel Glenfield wrote: > What about GDI functions? > You could put use a bitmap brush and paint a region with it, but that's a > poor way of doing it. Must be a better one. > > Are you using MFC ? > > > >From: Oladipo Odumosu <gen...@ya...> > >To: dev...@li... > >Subject: [Dev-C++] display image > >Date: Mon, 23 Jun 2003 02:52:30 +0100 (BST) > > > >Hi out there, > > > >i'm a fresh Win32 programmer. i have a problem - how > >do you display images that are not natively bitmaps in > >Win32 ? i have the imagelib devpak - so i can read > >PNG, & JPEG images, but how do you dispplay them? in > >windows, and generically? > > > >thanx > > > > > >________________________________________________________________________ > >Want to chat instantly with your online friends? Get the FREE Yahoo! > >Messenger http://uk.messenger.yahoo.com/ > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by: INetU > >Attention Web Developers & Consultants: Become An INetU Hosting Partner. > >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > >_______________________________________________ > >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/msnmobile > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > 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: Dondolo M. <MDo...@OL...> - 2003-06-23 08:23:57
|
Hi all, I have been playing around with streams and need the following help. I am able to print my files to our network printer and also write them to specific network drives. How do I write a device in one of my ports...eg, serial port consider this code as an example. ofstream create(" \\omcwca054\\HPLJ5000 <file://\\omcwca054\\HPLJ5000> ") cout<<"The following will be printed to on lazer jet printer"; create<<" Mpho Dondolo\n" <<" 45 Durban Ridge\n" <<"Tyger Valley\n"; create.close(); I want to write to my matrix display board that is connected to my serial port. NB!!!! Please do not flip if have not supplied sufficient info. ( last i did that, some guy almost had a heart attack) I am still new at this game |
From: Daniel G. <sp...@ho...> - 2003-06-23 08:16:36
|
Agreed. #if 0 ..#endif is a great way of doing it. >From: OROSZI Balázs <or...@vp...> >To: dev...@li... >Subject: Re: [Dev-C++] Comment Delimiters >Date: Mon, 23 Jun 2003 10:01:54 +0200 > >André Macário Barros wrote: >>Dear Users, >> >> Suppose you can´t use the /* and */ comment delimiters to put in comments >>an area of a code in C++. >> If I use the // command, must I put them in each line of this piece of >>code? >> Is there another way? > >There is a quick way: > >#if 0 >... >#endif > >Because "0" is "false", #if 0 can be considered like if (false){...}, which >will in fact, never execute. So all code, with or without comments, will >not be parsed by the C preprocessor there. > >This approach is also better, because /* */ comments cannot be nested. > >-- >Greetings, > Balázs > > > >------------------------------------------------------- >This SF.Net email is sponsored by: INetU >Attention Web Developers & Consultants: Become An INetU Hosting Partner. >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >_______________________________________________ >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/msnmobile |
From: <or...@vp...> - 2003-06-23 08:02:43
|
André Macário Barros wrote: > Dear Users, > > Suppose you can´t use the /* and */ comment delimiters to put in comments > an area of a code in C++. > If I use the // command, must I put them in each line of this piece of > code? > Is there another way? There is a quick way: #if 0 ... #endif Because "0" is "false", #if 0 can be considered like if (false){...}, which will in fact, never execute. So all code, with or without comments, will not be parsed by the C preprocessor there. This approach is also better, because /* */ comments cannot be nested. -- Greetings, Balázs |
From: Ioannis V. <iv...@em...> - 2003-06-23 07:43:09
|
I accidentally erased Per Westermark's email so I reply without part of his message. Why use compilation under condition for comments in C++? The best approach on comments in C++ is to use always // for comments, and use /* */ only for debugging purposes (to comment out blocks of code). Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
From: Daniel G. <sp...@ho...> - 2003-06-23 07:36:22
|
What about GDI functions? You could put use a bitmap brush and paint a region with it, but that's a poor way of doing it. Must be a better one. Are you using MFC ? >From: Oladipo Odumosu <gen...@ya...> >To: dev...@li... >Subject: [Dev-C++] display image >Date: Mon, 23 Jun 2003 02:52:30 +0100 (BST) > >Hi out there, > >i'm a fresh Win32 programmer. i have a problem - how >do you display images that are not natively bitmaps in >Win32 ? i have the imagelib devpak - so i can read >PNG, & JPEG images, but how do you dispplay them? in >windows, and generically? > >thanx > > >________________________________________________________________________ >Want to chat instantly with your online friends? Get the FREE Yahoo! >Messenger http://uk.messenger.yahoo.com/ > > >------------------------------------------------------- >This SF.Net email is sponsored by: INetU >Attention Web Developers & Consultants: Become An INetU Hosting Partner. >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >_______________________________________________ >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/msnmobile |
From: Daniel G. <sp...@ho...> - 2003-06-23 07:34:39
|
I've done a similar thing in the past, on this mailing list I think, of asking for good tutorials for directx and other things, and there's a good reason: Tutorials are a mixed bag sometimes. Some are easy to understand, others are not. Some, beginners find great, others beginners find extremely confusing. For those of you who work for a development company, you may know this by looking at your company's documentation and manuals from a beginner's point of view (get a trainee to follow them - you'll be surprised lol). I'm not saying asking should be the first port of call, do a search of course, but as we are famous for saying in development "don't reinvent the wheel". My $0.02, as has been said before. >From: "Abhijit Shylanath" <mu...@gm...> >To: "Shane Bryldt" <ast...@te...> >CC: "Dev-Cpp mailing list" <dev...@li...> >Subject: RE: [Dev-C++] DirectX Tutorials >Date: Mon, 23 Jun 2003 03:03:55 +0530 > > >Hello, Shane. If this is flame-bait, I'm biting. > > > their dog knows about search engines. If someone subscribes to a >special > > interests mailing list, I'm willing to bet, 10 to 1, they've already >tried > > to search the web for the same information. > > That said, why on earth would you waste your time telling someone to use > > Google on a special interests, especially an advanced programming >mailing > > list? This is a no-brainer. They are asking for specific > > resources. > >I agree that my reply would have been unwarranted if he had, in fact, >searched. But I'll take you on - he hadn't. It ticked me off that he hadn't >even tried doing it on his own, he expected someone else to. > > > This > > just baffles me that someone would point to google for DirectX help. I > > can't even critisize constructively how stupid this was. Do yourself a > > favor, and search for DirectX 9 on Google, then see if you can find any > > decent resources out of the first few pages. > >Try it yourself: >http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=utf-8&q=directx+9+tutoria >l&btnG=Google+Search > >(might be split up onto multiple lines - google `directx 9 tutorial'). >There are relavant results on the first page itself. And it's not just on >Google. Try Lycos. You get results. Good ones. Try AltaVista. Heck, try >even >MSN! > >Questions like `Is there a function to split foo into fifteen parts?' are >okay. They aren't *searchable*. Phrases like `DirectX 9 tutorial' reach out >and slap you in the face, screaming in high-pitched voices, "Search me!". >If >someone hasn't even bothered to try, I, personally feel they have no right >to ask. > >I came across a person the other day who posted a question from his >homework. I answered in brief, and he replied saying, "Yeah, I tried that, >it didn't work...", and he sent his source. I rewrote it and sent it back. >I >don't mind doing that much for him, because I admire him for trying. If I >can go out of my way to help someone, I can also go out of my way to >reprimand. > >-- >Abhijit Shylanath >Homepage: http://mudeth.tripod.com/ > > > >------------------------------------------------------- >This SF.Net email is sponsored by: INetU >Attention Web Developers & Consultants: Become An INetU Hosting Partner. >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >_______________________________________________ >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 _________________________________________________________________ Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile |
From: Per W. <pw...@ia...> - 2003-06-23 06:21:18
|
If you want to deactivate a large number of lines, you might do #ifdef _SKIP_THIS <unwanted code> #endif Then you don't have to make changes to all the individual lines of the code block. By the way - don't ever "#define _SKIP_THIS" later just to activate the code lines again :-) /Per W On Sun, 22 Jun 2003, [iso-8859-1] Andr=E9 Mac=E1rio Barros wrote: > Dear Users, > > =09Suppose you can=B4t use the /* and */ comment delimiters to put in com= ments > an area of a code in C++. > =09If I use the // command, must I put them in each line of this piece of > code? > Is there another way? > > Regards > Andre > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Ioannis V. <iv...@em...> - 2003-06-23 02:38:16
|
On the topic, I made a search and I came up to this: http://www.phreak.nu/books/more/ I do not know if this stuff is illegal, so be careful. I saw a directx 7 pdf there towards the end. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
From: Ioannis V. <iv...@em...> - 2003-06-23 02:34:42
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Andr? Macario Barros > Sent: Monday, June 23, 2003 4:28 AM > To: Dev-Cpp-Users > Subject: [Dev-C++] Comment Delimiters >=20 >=20 > Dear Users, >=20 > Suppose you can=B4t use the /* and */ comment delimiters=20 > to put in comments > an area of a code in C++. Why? > If I use the // command, must I put them in each line=20 > of this piece of > code? Yes. > Is there another way? No. Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
From: Rafael C. <rc...@un...> - 2003-06-23 02:18:43
|
Yes, you have to use "//" in the beginning of each line you want to comme= nt. Regards, Rafael C=F3pia Andr=E9 Mac=E1rio Barros <and...@su...>: > Dear Users, >=20 > Suppose you can=B4t use the /* and */ comment delimiters to put in > comments > an area of a code in C++. > If I use the // command, must I put them in each line of this piece > of > code? > Is there another way? >=20 > Regards > Andre >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting > Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly > Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > 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 >=20 |
From: <gen...@ya...> - 2003-06-23 01:52:31
|
Hi out there, i'm a fresh Win32 programmer. i have a problem - how do you display images that are not natively bitmaps in Win32 ? i have the imagelib devpak - so i can read PNG, & JPEG images, but how do you dispplay them? in windows, and generically? thanx ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ |
From: <and...@su...> - 2003-06-23 01:28:06
|
Dear Users, Suppose you can´t use the /* and */ comment delimiters to put in comments an area of a code in C++. If I use the // command, must I put them in each line of this piece of code? Is there another way? Regards Andre |