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;
cerr << endl << "\tWelcome to Pro/TOOLKIT - The \"ezLayout\" program" << endl;
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.This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.