cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Pro/Toolkit(WF5.0) with Visual studio2008

ptc-1028007
1-Visitor

Pro/Toolkit(WF5.0) with Visual studio2008

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.


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.
0 REPLIES 0
Announcements


Top Tags