Where and when to initialize them?
-
Recently, I write a program.And I write a WinMain function for it. But I don't know where and how to initialize the parameters of the function. Should I to initialize them by myself? Or the system will intialize them? Where can I find the initializtion of the parameters hInstC,hInstP,lpCmdLine,nCmdShow? the function is as follows: int PASCAL WinMain(HINSTANCE hInstC, HINSTANCE hInstP, LPTSTR lpCmdLine, int nCmdShow) {..................} free like a Bird
-
Recently, I write a program.And I write a WinMain function for it. But I don't know where and how to initialize the parameters of the function. Should I to initialize them by myself? Or the system will intialize them? Where can I find the initializtion of the parameters hInstC,hInstP,lpCmdLine,nCmdShow? the function is as follows: int PASCAL WinMain(HINSTANCE hInstC, HINSTANCE hInstP, LPTSTR lpCmdLine, int nCmdShow) {..................} free like a Bird
Windows calls
WinMain()
when your program is run, so it will set up the parameters itself. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- Actual sign at the laundromat I go to: "No tinting or dying."