Hi all,
I have a weird problem and i'm going nuts. If I start a project (win32 app), everything goes fine until i try to assign a value to a struct variable from a function, such as this:
results in this:Code:case WM_CREATE: { HFONT hfDefault; //... hfDefault = GetStockObject(DEFAULT_GUI_FONT); //no compile
error C2440: '=' : cannot convert from 'void *' to 'struct HFONT__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
The thing is, the example which contains this code compiles fine (with its own project file) but if i copy and paste the entire code into mine i get the error above. This is not the only example of this happening to me.
Any help would be appreciated, thanks.