|
From: Schedler, K. <Kur...@hi...> - 2001-02-22 17:27:55
|
Nevermind, I found the answer by searching with Google. You just have to add "-lgdi32" to the linker options box on the Project Options dialog. krs. -----Original Message----- I seem to be getting this error a lot when compiling example programs I find on the web: c:\my documents\src\cpp\simple\main.o(.text+0x162):main.cpp: undefined reference to `GetStockObject@4' Anyone have an idea what is wrong? This is the offending line of code: wndclass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); And one other thing I wanted to ask about... when using the menu "wizard" in the resource editor, I added a "File" item and an "Exit" subitem under that. But when the app added the lines of code to my resource file, I ended up with "File", "File->Exit", and then an "Exit" on the main menu bar as well. Oops, one more thing (I promise this will be the last in this message!), when using Edit->Insert to add an if, while, or for loop template, the curly braces don't tab over to align with the code above. Have I not set up something properly, or am I asking for a new feature? Thanks, krs. "The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. The sender's employer is not liable for any loss or damage arising in any way from this message or its attachments." _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users "The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. The sender's employer is not liable for any loss or damage arising in any way from this message or its attachments." |