|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++.windows.32-bits - GetStockObject problem
Hi all, I'm having a problem with GetStockObject under Digital Mars, as well as minGW32. The following works fine in Visual C++: wmainclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH); But when I try to compile this ins Digital Mars or minGW32, I get the following linker error: Error 42: Symbol Undefined: _GetStockObject 4 AFAIK, GetStockObject is a standard Win API call, so I don't see why this isn't working. Can anyone give me a hand? Thanks! Dec 08 2003
Include GDI32.lib into you project's link phase... murban cbs.umn.edu wrote:Hi all, I'm having a problem with GetStockObject under Digital Mars, as well as minGW32. The following works fine in Visual C++: wmainclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH); But when I try to compile this ins Digital Mars or minGW32, I get the following linker error: Error 42: Symbol Undefined: _GetStockObject 4 AFAIK, GetStockObject is a standard Win API call, so I don't see why this isn't working. Can anyone give me a hand? Thanks! Dec 08 2003
Oh yeah... That worked. Thanks. :) In article <br288p$1uer$1 digitaldaemon.com>, Jan Knepper says...Include GDI32.lib into you project's link phase... murban cbs.umn.edu wrote:Hi all, I'm having a problem with GetStockObject under Digital Mars, as well as minGW32. The following works fine in Visual C++: wmainclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH); But when I try to compile this ins Digital Mars or minGW32, I get the following linker error: Error 42: Symbol Undefined: _GetStockObject 4 AFAIK, GetStockObject is a standard Win API call, so I don't see why this isn't working. Can anyone give me a hand? Thanks! Dec 08 2003
|