i'm newbie to windows and GUI programming and just start reading "Windows Programming" but something confused me on createing a window. here are my questions:
1. all samples in the book are written in C, can C++ do windows programing instead ?
2. there are always some attributes like "WINAPI" and "CALLBACK" in function declaration like this:
what's the difference for functions with and without them ?Code:LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ; int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow);
and i'd appreciate anyone could figure out where relative documentation is in MSDN.
3. for a simple window program, how many functions we must code with ? (i know only WinMain, ShowWindow and UpdateWindow)