AnsweredAssumed Answered

after use english menu the chinese char changed to question mark.

Question asked by Kui Huang on May 8, 2019
Latest reply on May 11, 2019 by Kui Huang

before use english lauguage menus

after use english lauguage menus

the chinese charactor become to quantion mark.

 

the operations step:

open sw part;

click plugin menu developed by me(like below);

output the message above;

 

the program code:

HRESULT res;
IModelDoc2* pModelDoc = NULL;
res = m_iSldWorks->get_IActiveDoc2(&pModelDoc);
BSTR bFilePath=StringToBSTR("");
pModelDoc->GetPathName(&bFilePath);
CString FilePath(bFilePath);
AfxMessageBox(FilePath);

 

Thank you for your help!

Best Regards.

Outcomes