各位好!在做一个程序,其中ATL的windows shell调用MFC的DLL,DLL用的是标准C接口,传递用的是CString。
windows shell里的CString用的是ATL的,DLL接收值用的是MFC的CString。
查了资料,ATL和MFC中CString是通用的啊,我用的是VS2008.如:在windows shell里获得一个文件地址:“C:\1.TXT”
而在DLL里,接到的是“C”。其余的没有了。谢谢各位帮助。
windows shell里的CString用的是ATL的,DLL接收值用的是MFC的CString。
查了资料,ATL和MFC中CString是通用的啊,我用的是VS2008.如:在windows shell里获得一个文件地址:“C:\1.TXT”
而在DLL里,接到的是“C”。其余的没有了。谢谢各位帮助。
mfc中的CString,可以这样:CString mfcstr;
mfcstr = str.c_str();
str = mfcstr.GetBuffer(0);
非常感谢各位。