My compiler refuses to compile this code because of "ISO c++ forbids 'in-class initialization of non-const static member `ExStyle' ' How can I bypass this? Using Dev-cpp on Windows
Thanks.
here's the code:
Code:
#define _WRAPPER_H
class Window
{
HWND hwnd;
public:
Window();
virtual ~Window();//and this
HINSTANCE hInst;
DWORD ExStyle=0;
int width=400;
int height=300;
int X=400;
int Y=400;
HWND Parent=HWND_DESKTOP;
char* name[];
char* WndClass[]; //Ugly
DWORD style=WS_SYSMENU;
hwnd=CreateWindowEx(ExStyle,
*WndCls,
*name,
style,
X,
Y,
width,
height,
Parent,
NULL,
hInst,
NULL);
};
};
#endif