I am starting doing some directX programming. I am using this tutorial that I have found from the Internet.
I am just wondering why the CALLBACK has been defined as _stdcall and why WINAPI is as well.
I thought __stdcall was used when exporting functions that will be compiled as a dll.
However, as WindowProc and WINAPI will never been exported why are these functions declared as __stdcall?
Many thanks for any suggestions,
// WindowProc function prototype
LRESULT CALLBACK WindowProc(HWND hWnd,
UINT message,
WPARAM wParam,
LPARAM lParam);
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
}