Classes and Win32 API, and another Question
Hello,
After programming in Win32 console c++, I feel most ready to start Win32 API. I got down making a blank window, some little text on the screen, but I'm aslo wondering if all C++ is available when using win32 API. Reason I ask is I'm wondering if Classes work as well. For example, the header has my class, and can I still make objects with it on the main source? Does it work like MFC?
Also, I'm trying to make an object's variable show up on a message box. For example,
MessageBox(NULL, PC.Age, "Message", MB_OK);
I get the following Errors:
error C2065: 'Player' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'PC'
error C2065: 'PC' : undeclared identifier
error C2228: left of '.Age' must have class/struct/union type
error C2228: left of '.Age' must have class/struct/union type
Where do I define objects? In the switch() cases? Any help is appreciated. Thanks.