I'm a vb6/sql server programmer and I'm trying to complete this tutorial using vs2005 -> it will be interesting.
Until now it seems to compile with few warnings about some deprecated functions.
In the plugin zip archive I can't find the ‘proto.rc2’ and the res folder.
If is somewone to send it to me or tell me with what I could replace it I would thank you very much.
Trying to compile the example in the file CustomPluginImpl.cpp at function :
CString myProfileInit(CString name, CXMLProfile *DevProf)
{
DbgMsg(("myProfileInit entry"));
//this gets the default directory DefDir in which Mach3 is located. and the profile name ex. "Mach3Mill"
//DefDir = DevProf->GetProfileString("Preferences","DefDir","C:\\Mach3\\");
//Profile = DevProf->GetProfileString("Preferences","Profile","Mach3Mill");
DbgMsg(("myProfileInit exit"));
return(" CustomPlugin PlugIn - James W. Leonard Ver 1.0 ");
}
I receive the following error at return line:
Error 8 error C2664: 'ATL::CStringT<BaseType,StringTraits>::CStringT(const VARIANT &)' : cannot convert parameter 1 from 'const char [48]' to 'const VARIANT &' d:\daniel\dotnet\machsdk\sdk\customplugin\customplugin\custompluginimpl.cpp 63
I have tryed a lot of explicit conversions but without success.