Is there a way to forward-declare a type HINSTANCEfrom WinAPI without including the full (and large) header windows.h?
For example, if I have a class RenderWindowthat belongs to HINSTANCE mInstance, I must include windows.hin RenderWindow.h. So, everything you need should RenderWindowalso include windows.h.
I tried turning it on windef.h, but it seems that I need some things from windows.h. :-( If I can’t forward the ad, is there at least a portable way to use something like long mInstancein RenderWindowinstead HINSTANCE?
source
share