O
otengo
Hi,
I've followed simple steps ie: Created a class (call it mycommandline)
inheriting from CCommandLineInfo. Than overrided the ParseParam
method. Created a mycommandline object and passed to ParseCommandLine
method of my CWinApp inside its InitInstance method. Now I pass
command line arguments to my application but my overrided ParseParam
is not getting called. What am I doing wrong?
command line class code that I wrote is:
class mycommandline: public CCommandLineInfo
{
public:
mycommandline();
virtual void ParseParam(const char* pszParam, BOOL bFlag, BOOL
bLast );
};
mycommandline::mycommandline()
{}
void mycommandline:arseParam(const char* pszParam, BOOL bFlag, BOOL
bLast )
{
::MessageBoxA(NULL, pszParam, "args", MB_OK);
}
Regards,
...ab
I've followed simple steps ie: Created a class (call it mycommandline)
inheriting from CCommandLineInfo. Than overrided the ParseParam
method. Created a mycommandline object and passed to ParseCommandLine
method of my CWinApp inside its InitInstance method. Now I pass
command line arguments to my application but my overrided ParseParam
is not getting called. What am I doing wrong?
command line class code that I wrote is:
class mycommandline: public CCommandLineInfo
{
public:
mycommandline();
virtual void ParseParam(const char* pszParam, BOOL bFlag, BOOL
bLast );
};
mycommandline::mycommandline()
{}
void mycommandline:arseParam(const char* pszParam, BOOL bFlag, BOOL
bLast )
{
::MessageBoxA(NULL, pszParam, "args", MB_OK);
}
Regards,
...ab