Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
I create VC++ Console project using MFC Link.
And then I got this code.
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
int nRetCode = 0;
// initialize MFC and print and error on failure
if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
{
// TODO: change error code to suit your needs
cerr << _T("Fatal Error: MFC initialization failed") << endl;
nRetCode = 1;
}
else
{
cerr << endl << "\tWelcome to Pro/TOOLKIT - The \"ezLayout\" program" << endl;
ProToolkitMain(argc, argv);
}
return nRetCode;
}
I insert "ProToolkitMain(argc, argv)" . But I can't compile because of argv.
"error C2664: 'ProToolkitMain' : Parameter 2 'TCHAR *[] could not be converted to 'char **'. "
Does anyone know how to solve? I think there is a way to set enviroment.