Help me please!
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/OpenWindow.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
???
try creating a new blank Win32 project and add your existing file to that and then try again.
[This message has been edited by STG (edited October 20, 1999).]
wndclass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
In fact, I don't see how the other code even works. BLACK_BRUSH is an integer, and doesn't need to be cast, since GetStockObject takes an integer as its only parameter . The fact that GetStockObject returns fonts, brushs, pens, etc. is the reason why it has to be cast.
- Splat
wndclass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
is the only thing that works, but why does every piece of code that I look at write:
wndclass.hbrBackground = GetStockObject(BLACK_BRUSH);
???
CU
------------------
Skullpture Entertainment
#40842461
------------------
Dance with me......
wndclass.hbrBackground = GetStockObject(BLACK_BRUSH);
The error:
error C2440: '=' : cannot convert from 'void *' to 'struct HBRUSH__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
please help me solve this problem!
c:\pware\arcgfx\arctest\mainwin.cpp(55) : error C2440: '=' : cannot convert from 'void *' to 'struct HBRUSH__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
VC 6 does not automagically cast things like this for you. 5 and under do.
--- Official D Blog | Learning D | The One With D | D Bits