Hello.
I need know the way of my .exe file.
In console mode is just you declare
Code:int main(int argn,char *arg[])
and than the paramenter arg[0] is the local os the executable.
But in windows programing how i do this?
Thanks
Hello.
I need know the way of my .exe file.
In console mode is just you declare
Code:int main(int argn,char *arg[])
and than the paramenter arg[0] is the local os the executable.
But in windows programing how i do this?
Thanks
This is a valid entry point for a Windows app, but yes, it will be console based. (What's wrong with that? ;-) )
For a Win32 GUI app, the general entry point is:
From here.Code:int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
Google for a couple of Windows / Win32 programming tutorials, if you're looking to get started down that path...
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)
I know man.
But i really like to know what is the WinMain parameter that i can found the way of .exe file.
Thanks
None, as per the manual the executable name is not included in lpCmdLine nor returned by GetCommandLine().
There is probably some function that can, have a look around MSDN.Originally Posted by msdn [url
Feeling generous this morning: GetModuleFileName