Command Line arguments in MFC
-
I was just wondering how I could get access to the command line arguments in MFC? I know in C it would have been the argv[] parameter in the main, but I don't know how to get that in MFC. Thanks, David
-
I was just wondering how I could get access to the command line arguments in MFC? I know in C it would have been the argv[] parameter in the main, but I don't know how to get that in MFC. Thanks, David
toothless boots wrote: I was just wondering how I could get access to the command line arguments in MFC? I know in C it would have been the argv[] parameter in the main, but I don't know how to get that in MFC. MAY BE THIS CLASS WILL HELP YOU class CCommandLineInfo :rose: ----------------------------- "I Think It will Work" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk
-
I was just wondering how I could get access to the command line arguments in MFC? I know in C it would have been the argv[] parameter in the main, but I don't know how to get that in MFC. Thanks, David
toothless boots wrote: I know in C it would have been the argv[] parameter in the main You can still use
__argc
and__argv
. From the application object, you have access to them_lpCmdLine
member.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen