|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] WNDCLASS problem
Hi !
I have recently bought a book on windows programming ("Windows
gameprogramming for dummies" written by Andé LaMothe), and when I tried to
compile an example .cpp-file(for you who have this book its PROG4_1.CPP), I
get this error :
cannot convert from 'void *' to 'struct HBRUSH__ *'
Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
And it is referring to :
(WNDCLASS winclass;)
winclass.hbrBackground = GetStockObject(BLACK_BRUSH);
Does anyone know what's wrong ??
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once
To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html
|
|