Thread: [Dev-C++] Re: Dev-cpp-users digest, Vol 1 #918 - 14 msgs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <pi...@fr...> - 2002-08-10 21:46:20
|
ok ----- Message d'origine ----- De : <dev...@li...> À : <dev...@li...> Envoyé : samedi 10 août 2002 19:18 Objet : Dev-cpp-users digest, Vol 1 #918 - 14 msgs > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. Re: Stupid question (jansb000) > 2. RE: Stupid question (Rob) > 3. RE: Stupid question (Ioannis Vranos) > 4. Re[2]: [Dev-C++] Stupid question (Zodiaq) > 5. RE: Re[2]: [Dev-C++] Stupid question (Ioannis Vranos) > 6. timers (Ramana Kumar) > 7. Re: Re[2]: [Dev-C++] monitoring traffic, how? (A.Klingenstein) > 8. Problem linking simple GTK+ prog with Dev-Cpp 4.9.5.0 (Mark Brooks) > 9. Re[4]: [Dev-C++] monitoring traffic, how? (Zodiaq) > 10. forget... (Zodiaq) > 11. RE: Problem linking simple GTK+ prog with Dev-Cpp 4.9.5.0 (Mark Brooks) > 12. Re: Problem linking simple GTK+ prog with Dev-Cpp 4.9.5.0 (Hongli Lai) > 13. graphics.h (Where Do i Get It) (Garrett Bratvold) > 14. Re: graphics.h (Where Do i Get It) (Hongli Lai) > > --__--__-- > > Message: 1 > From: "jansb000" <jan...@pl...> > To: "Jim Watters" <ma...@em...>, > <dev...@li...> > Subject: Re: [Dev-C++] Stupid question > Date: Fri, 9 Aug 2002 23:15:43 +0200 > > This is my program: I still have the problem ([linker error] undefined > reference to 'cout')! > > #include <iostream> > #include <stdlib.h> > > using namespace std; > > int main(int argc, char *argv[]) { > cout << "hello" << "\n"; > system("PAUSE"); > return 0; > } > > ----- Original Message ----- > From: "Jim Watters" <ma...@em...> > To: <dev...@li...> > Sent: Wednesday, August 07, 2002 3:11 PM > Subject: RE: [Dev-C++] Stupid question > > > > -----Original Message----- > > From: Jim Watters > > > > #include <iostream.h> > > > > ;-) > > > > -----Original Message----- > > From: Ioannis Vranos > > > > #include <iostream> > > > > using namespace std; > > > > :) > > > > -----New Message----- > > > > You mean :) must be used instead of ;-)? > > > > Thanks. I'm used to C and doing things "the old way". > > > > :) > > > > Jim > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > 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 > > > > --__--__-- > > Message: 2 > From: "Rob" <ro...@us...> > To: <dev...@li...> > Subject: RE: [Dev-C++] Stupid question > Date: Fri, 9 Aug 2002 16:37:42 -0500 > > I pasted your code into a blank file and compiled/executed it without > problem. > > Rob > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...]On Behalf Of jansb000 > > Sent: Friday, August 09, 2002 4:16 PM > > To: Jim Watters; dev...@li... > > Subject: Re: [Dev-C++] Stupid question > > > > > > This is my program: I still have the problem ([linker error] undefined > > reference to 'cout')! > > > > #include <iostream> > > #include <stdlib.h> > > > > using namespace std; > > > > int main(int argc, char *argv[]) { > > cout << "hello" << "\n"; > > system("PAUSE"); > > return 0; > > } > > > > ----- Original Message ----- > > From: "Jim Watters" <ma...@em...> > > To: <dev...@li...> > > Sent: Wednesday, August 07, 2002 3:11 PM > > Subject: RE: [Dev-C++] Stupid question > > > > > > > -----Original Message----- > > > From: Jim Watters > > > > > > #include <iostream.h> > > > > > > ;-) > > > > > > -----Original Message----- > > > From: Ioannis Vranos > > > > > > #include <iostream> > > > > > > using namespace std; > > > > > > :) > > > > > > -----New Message----- > > > > > > You mean :) must be used instead of ;-)? > > > > > > Thanks. I'm used to C and doing things "the old way". > > > > > > :) > > > > > > Jim > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > 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:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > 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 > > > > > --__--__-- > > Message: 3 > From: "Ioannis Vranos" <no...@ho...> > To: <dev...@li...> > Subject: RE: [Dev-C++] Stupid question > Date: Sat, 10 Aug 2002 00:53:12 +0300 > > Your code is valid, you should not get any errors, although it could be > written better: > > #include <iostream> > #include <cstdlib> > > > int main() { > > using namespace std; > > cout << "hello" << "\n"; > system("PAUSE"); > > return 0; > } > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of jansb000 > > Sent: Saturday, August 10, 2002 12:16 AM > > To: Jim Watters; dev...@li... > > Subject: Re: [Dev-C++] Stupid question > > > > > > This is my program: I still have the problem ([linker error] undefined > > reference to 'cout')! > > > > #include <iostream> > > #include <stdlib.h> > > > > using namespace std; > > > > int main(int argc, char *argv[]) { > > cout << "hello" << "\n"; > > system("PAUSE"); > > return 0; > > } > > > > ----- Original Message ----- > > From: "Jim Watters" <ma...@em...> > > To: <dev...@li...> > > Sent: Wednesday, August 07, 2002 3:11 PM > > Subject: RE: [Dev-C++] Stupid question > > > > > > > -----Original Message----- > > > From: Jim Watters > > > > > > #include <iostream.h> > > > > > > ;-) > > > > > > -----Original Message----- > > > From: Ioannis Vranos > > > > > > #include <iostream> > > > > > > using namespace std; > > > > > > :) > > > > > > -----New Message----- > > > > > > You mean :) must be used instead of ;-)? > > > > > > Thanks. I'm used to C and doing things "the old way". > > > > > > :) > > > > > > Jim > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > 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:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > 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 > > > > > --__--__-- > > Message: 4 > Date: Sat, 10 Aug 2002 00:40:22 +0200 > From: Zodiaq <zo...@ac...> > Reply-To: Zodiaq <zo...@ac...> > Organization: Earth > To: Dev...@li... > Subject: Re[2]: [Dev-C++] Stupid question > > Hello Ioannis and all Dev-C++ users, > > Friday, August 9, 2002, 11:53:12 PM, Ioannis wrote as follows: > > IV> Your code is valid, you should not get any errors, although it could be > IV> written better: > > IV> #include <iostream> > IV> #include <cstdlib> > > > IV> int main() { > > IV> using namespace std; > > IV> cout << "hello" << "\n"; > IV> system("PAUSE"); > > Ain't that better to use cin.ignore() instead of cstdlib and > system("PAUSE") ?? > > IV> return 0; > IV> } > > > IV> Ioannis > > IV> * Ioannis Vranos > IV> * Programming pages: http://www.noicys.cjb.net > IV> * Alternative URL: http://run.to/noicys > > that are just my two grosze... > -- > regards, Zodiaq > > > > --__--__-- > > Message: 5 > From: "Ioannis Vranos" <no...@ho...> > To: <Dev...@li...> > Subject: RE: Re[2]: [Dev-C++] Stupid question > Date: Sat, 10 Aug 2002 01:45:45 +0300 > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf Of Zodiaq > > Sent: Saturday, August 10, 2002 1:40 AM > > To: Dev...@li... > > Subject: Re[2]: [Dev-C++] Stupid question > > > > > > Hello Ioannis and all Dev-C++ users, > > > > Friday, August 9, 2002, 11:53:12 PM, Ioannis wrote as follows: > > > > IV> Your code is valid, you should not get any errors, > > although it could be > > IV> written better: > > > > IV> #include <iostream> > > IV> #include <cstdlib> > > > > > > IV> int main() { > > > > IV> using namespace std; > > > > IV> cout << "hello" << "\n"; > > IV> system("PAUSE"); > > > > Ain't that better to use cin.ignore() instead of cstdlib and > > system("PAUSE") ?? > > > Yes that would be more portable. > > > > > that are just my two grosze... > > -- > > regards, Zodiaq > > > Ioannis hands to Zodiaq 2 euro-grosze. > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys > > > --__--__-- > > Message: 6 > From: "Ramana Kumar" <ra...@my...> > To: "C++" <dev...@li...> > Date: Sat, 10 Aug 2002 21:13:50 +1000 > Subject: [Dev-C++] timers > > Hi, I have a problem concerning timers in windows. > I am using only win32 API, and i use the fuction: > > SetTimer(hwnd,id,len*100,NULL); > //hwnd is the HWND of the window, id is a UINT, len is a UINT > > to set a timer that will later send a WM_TIMER message to my WindowProc. In > my WindowProc i have code like this: > > case WM_TIMER: > { > myclass->blah(); > return 0; > } > //myclass is a pointer to an object with a function called blah > > and the function blah sets bool thebool to the value false. > > in the function that calls SetTimer, i later have the code: > > thebool = true; > while(thebool) > { > MessageBox(hwnd,"WAITING","ERROR",MB_OK); //this gets deleted > } > > when i run the program, the messagebox comes up a number of times until > len*100 milliseconds has passed, then it resumes normal operation. > The problem is, i do not want to have to put up this messagebox. So i delete > the code for it. Once i do this, it seems the WM_TIMER message is never sent > for some reason. even if a put a messagebox in the case WM_TIMER: section, > it is never shown, unless i keep the messagbox in the while loop. > what is the meaning of this? > how am i using the timer wrongly? > thanks in advance > ramana > ps i also tried putting WaitMessage(); in the while loop instead, but it has > no effect. > > > > --__--__-- > > Message: 7 > Date: Sat, 10 Aug 2002 13:45:19 +0200 > From: A.Klingenstein <kli...@we...> > To: Dev...@li... > Subject: Re: Re[2]: [Dev-C++] monitoring traffic, how? > > On Thu, 8 Aug 2002 11:31:45 +0200 > Zodiaq <zo...@ac...> wrote: > > Yeah, I know about that, and I know about perfmon... but I just want > > write something similar by my own - something to show me bytes > > received and send, nothing more... so I have to build driver for that? > > Or are there any simplier methods? > > You don´t need a driver for getting this info. There are numerous small > applications which give you that info, some with source, like: > http://gamma.nic.fi/~rainy/Rainmeter.html which is extensible by your own > plugins and is GPLed. > > Alex > > > --__--__-- > > Message: 8 > From: "Mark Brooks" <jmb...@ea...> > To: <dev...@li...> > Date: Sat, 10 Aug 2002 08:55:48 -0400 > Subject: [Dev-C++] Problem linking simple GTK+ prog with Dev-Cpp 4.9.5.0 > > Hello. I'm trying to get the GTK+ 2.0.3 package to work correctly with my > Dev-Cpp install on Win2k. I'm using the default minGW complier that comes > with Dev-Cpp, and I've installed all the Dev-Cpp updates that the update > tool says are available. > > I believe that I have the include directories properly registered with the > IDE. What I'm getting are linking errors. > > [Linker error] undefined reference to `gtk_init_abi_check' > [Linker error] undefined reference to `gtk_window_new' > [Linker error] undefined reference to `gtk_widget_show' > [Linker error] undefined reference to `gtk_main' > > Here is the simple program I'm trying to get to compile and run correctly as > a test of my GTK setup: > > #include <gtk/gtk.h> > > int main (int argc, char *argv[]) > { > > GtkWidget *window; > > gtk_init (&argc, &argv); > > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > > gtk_widget_show (window); > > gtk_main(); > > return 0; > > } > > As I said, a simple test program. > > I'm sure that there's something I haven't configured correctly that is > causing the problem. Could it be that I need to insert '-lglib' and > '-lgtk+' in my compiler options somewhere? > > Thanks for any assistance. > > Mark Brooks > > > > --__--__-- > > Message: 9 > Date: Sat, 10 Aug 2002 15:28:52 +0200 > From: Zodiaq <zo...@ac...> > Reply-To: Zodiaq <zo...@ac...> > Organization: Earth > To: Dev...@li... > Subject: Re[4]: [Dev-C++] monitoring traffic, how? > > Hello A and all Dev-C++ users, > > Saturday, August 10, 2002, 1:45:19 PM, A wrote as follows: > > AK> You don´t need a driver for getting this info. There are numerous small > AK> applications which give you that info, some with source, like: > AK> http://gamma.nic.fi/~rainy/Rainmeter.html which is extensible by your own > AK> plugins and is GPLed. > > Yeah, nice software, but I don't have time to analize how it works... > instead someone on newsgroup gave me info how to do what I want... the > answer is very simple - IP helper API... just simple like that... I'm > already building my simple app that monitor data flow through my > interfaces... and now I need SOME MORE HELP... > > Does anybody know (or have some example) how to properly build header > control that could work on strings (edit controls?) ? Well, I found > how to build header, but how to make it work (make it move data below > it) with some edit controls... I have problems understanding how it > works - header and rich edit ? Well, when I put header control inside > rich edit I can normally put text inside rich edit - and that text > destroys header(writes over)... which is BAD! ;-] Any help > apreciated... > > AK> Alex > > -- > regards, Zodiaq > > > > --__--__-- > > Message: 10 > Date: Sat, 10 Aug 2002 16:05:55 +0200 > From: Zodiaq <zo...@ac...> > Reply-To: Zodiaq <zo...@ac...> > Organization: Earth > To: Dev...@li... > Subject: [Dev-C++] forget... > > Hello, forget about my last question... > > what I need is not header control but list view control... > > --- > regards, Zodiaq > > > > --__--__-- > > Message: 11 > From: "Mark Brooks" <jmb...@ea...> > To: <dev...@li...> > Subject: RE: [Dev-C++] Problem linking simple GTK+ prog with Dev-Cpp 4.9.5.0 > Date: Sat, 10 Aug 2002 10:20:48 -0400 > > One other note. I installed GTK+ with the package manager. > > Mark Brooks > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...]On Behalf Of Mark > > Brooks > > Sent: Saturday, August 10, 2002 8:56 AM > > To: dev...@li... > > Subject: [Dev-C++] Problem linking simple GTK+ prog with Dev-Cpp 4.9.5.0 > > > > > > Hello. I'm trying to get the GTK+ 2.0.3 package to work correctly with my > > Dev-Cpp install on Win2k. I'm using the default minGW complier that comes > > with Dev-Cpp, and I've installed all the Dev-Cpp updates that the update > > tool says are available. > > > > I believe that I have the include directories properly registered with the > > IDE. What I'm getting are linking errors. > > > > [Linker error] undefined reference to `gtk_init_abi_check' > > [Linker error] undefined reference to `gtk_window_new' > > [Linker error] undefined reference to `gtk_widget_show' > > [Linker error] undefined reference to `gtk_main' > > > > Here is the simple program I'm trying to get to compile and run > > correctly as > > a test of my GTK setup: > > > > #include <gtk/gtk.h> > > > > int main (int argc, char *argv[]) > > { > > > > GtkWidget *window; > > > > gtk_init (&argc, &argv); > > > > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > > > > gtk_widget_show (window); > > > > gtk_main(); > > > > return 0; > > > > } > > > > As I said, a simple test program. > > > > I'm sure that there's something I haven't configured correctly that is > > causing the problem. Could it be that I need to insert '-lglib' and > > '-lgtk+' in my compiler options somewhere? > > > > Thanks for any assistance. > > > > Mark Brooks > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > 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 > > > > --__--__-- > > Message: 12 > Subject: Re: [Dev-C++] Problem linking simple GTK+ prog with Dev-Cpp 4.9.5.0 > From: Hongli Lai <h....@ch...> > To: Mark Brooks <jmb...@ea...> > Cc: dev...@li... > Date: 10 Aug 2002 17:52:37 +0200 > > On Sat, 2002-08-10 at 14:55, Mark Brooks wrote: > > Hello. I'm trying to get the GTK+ 2.0.3 package to work correctly with my > > Dev-Cpp install on Win2k. I'm using the default minGW complier that comes > > with Dev-Cpp, and I've installed all the Dev-Cpp updates that the update > > tool says are available. > > Use the GTK+ *template*. > > > > > --__--__-- > > Message: 13 > From: "Garrett Bratvold" <Jed...@ms...> > To: <dev...@li...> > Date: Sat, 10 Aug 2002 12:01:47 -0500 > Subject: [Dev-C++] graphics.h (Where Do i Get It) > > > ------=_NextPart_001_0000_01C24065.B3E37CA0 > Content-Type: text/plain; charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > I Was Wondering, Where Can I Get a Dev C++ Compatible graphics.h? And It= > s Really Hard To Find, Please--If You Know, Please Email Me: =20 > > Jed...@ms... . > > May The Force Be With You, > Garrett B.Get more from the Web. FREE MSN Explorer download : http://exp= > lorer.msn.com > > ------=_NextPart_001_0000_01C24065.B3E37CA0 > Content-Type: text/html; charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <HTML><BODY STYLE=3D"font:10pt verdana; border:none;"><DIV>I Was Wonderin= > g, Where Can I Get a Dev C++ Compatible graphics.h? And Its Re= > ally Hard To Find, Please--If You Know, Please Email Me: </DIV> <DIV>&nbs= > p;</DIV> <DIV><A href=3D"mailto:Jed...@ms...">Jed...@ms...= > m</A> .<BR><BR>May The Force Be With You,<BR>Garrett B.</DIV></BODY></HTM= > L><br clear=3Dall><hr>Get more from the Web. FREE MSN Explorer download = > : <a href=3D'http://explorer.msn.com'>http://explorer.msn.com</a><br></p> > > ------=_NextPart_001_0000_01C24065.B3E37CA0-- > > > --__--__-- > > Message: 14 > Subject: Re: [Dev-C++] graphics.h (Where Do i Get It) > From: Hongli Lai <h....@ch...> > To: Garrett Bratvold <Jed...@ms...> > Cc: dev...@li... > Date: 10 Aug 2002 19:23:26 +0200 > > On Sat, 2002-08-10 at 19:01, Garrett Bratvold wrote: > > I Was Wondering, Where Can I Get a Dev C++ Compatible graphics.h? And Its Really Hard To Find, Please--If You Know, Please Email Me: > > > > One Answer: You Can't. It's A Borland/DOS Extension. If You Want To > Access Graphics Routines, Use The Win32 API Directly Or Use Some > Graphics Library Like SDL Or DirectX. > (and could you *please* stop typing everything in BiCapital?) > > > > > > --__--__-- > > _______________________________________________ > 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 > > > End of Dev-cpp-users Digest > |