Running exe problem
-
Hi I want to write a application(MFC), which can be run in two way 1. Auto run at start up. 2. Manually run by user. I want to know that, is there any way to identify whether it is manually running or autorun.I want to impliment some functionality according that in the exe. Acually i want to impliment this in the InitInstance(); nkb
-
Hi I want to write a application(MFC), which can be run in two way 1. Auto run at start up. 2. Manually run by user. I want to know that, is there any way to identify whether it is manually running or autorun.I want to impliment some functionality according that in the exe. Acually i want to impliment this in the InitInstance(); nkb
aaaan wrote:
1. Auto run at start up.
I'm not sure how it works. But, can you use command line to identify.
Prasad Notifier using ATL | Operator new[],delete[][^]
-
aaaan wrote:
1. Auto run at start up.
I'm not sure how it works. But, can you use command line to identify.
Prasad Notifier using ATL | Operator new[],delete[][^]
-
Hi Prasad thanks for your replay. But i donnot know how to use comandline Can you tell me a little briefly. Thanks nkb
aaaan wrote:
But i donnot know how to use comandline
Use
GetCommandLine
, for getting commnad line parameters. When running and exe, they are eimmediately followed by exe name. We can use while running an exe.c:\\MyExe.exe "prasad"
In example above "prasad" will be passed as parameter to exe. Which can be obtained using GetcommandLine from application. See description of
GetcommandLine
for better understanding.Prasad Notifier using ATL | Operator new[],delete[][^]