visual c++ - Missing WinMain() arguments in Windows SDK sample -
in 1 of samples come w/ windows sdk (the createprocessverb sample), winmain code follows:
int apientry wwinmain (hinstance, hinstance, pwstr pszcmdline, int) { ..
note 3rd argument specified, rest have been ignored. how possible? why c++ compiler not upset w/ this? default values being pulled in, , if so, through mechanism?
thanks -
todd
in c++ don't have give names parameters don't use. in c can prototypes:
void function(int, char *, double, long);
in c++ works in definitions:
void function(int, char *, double, long) { // ... }
Comments
Post a Comment