"heinquoi" <no**************@libertysurf.fr> schrieb im Newsbeitrag
news:40***********************@news.free.fr...
hello,
i have the code:
class window
{
static const HWND hWnd;
static const HINSTANCE hInst;
// ... next code here
window (HINSTANCE );
}
window::window ( HINSTANCE hInstance )
{
// and i try to definie the hInst
hInst (hInstance);
// next code here
}
But that not accepted for my compiler intel 8.0
How i can initialize a static const data in my code, but not
immediately and in a fonction.
use const HWND hwnd = ... or leave the const off. You cannot assign
any "const" variable a value other than on creation of it.
Make your variable private, so nothing can alter it from outside.
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com