[commit] r1265 - in trunk/SDK/BON: Common Wizard/Templates/1033
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Tue Apr 12 15:05:13 CDT 2011
Author: ksmyth
Date: Tue Apr 12 15:05:13 2011
New Revision: 1265
Log:
more UNICODE
Modified:
trunk/SDK/BON/Common/ComponentObj.cpp
trunk/SDK/BON/Wizard/Templates/1033/BON2Component.cpp
trunk/SDK/BON/Wizard/Templates/1033/BONComponent.cpp
Modified: trunk/SDK/BON/Common/ComponentObj.cpp
==============================================================================
--- trunk/SDK/BON/Common/ComponentObj.cpp Tue Apr 12 14:48:33 2011 (r1264)
+++ trunk/SDK/BON/Common/ComponentObj.cpp Tue Apr 12 15:05:13 2011 (r1265)
@@ -168,7 +168,7 @@
pThis->comp->HandleError( &ex );
}
catch ( ... ) {
- AfxMessageBox( "Unhandled and unknown exception was thrown in BON2Component GlobalEvent!" );
+ AfxMessageBox( _T("Unhandled and unknown exception was thrown in BON2Component GlobalEvent!") );
}
return S_OK;
#else
@@ -197,7 +197,7 @@
pThis->comp->HandleError( &ex );
}
catch ( ... ) {
- AfxMessageBox( "Unhandled and unknown exception was thrown in BON2Component ObjectEvent!" );
+ AfxMessageBox( _T("Unhandled and unknown exception was thrown in BON2Component ObjectEvent!") );
}
return S_OK;
#else
@@ -468,11 +468,11 @@
COMTHROW(project->put_Preferences(prefs));
#else
if(pThis->interactive) {
- AfxMessageBox("This interpreter has been upgraded to the new component interface \n"
- "but the user-provided files (Component.cpp and Component.h) \n"
- "use the deprecated interface. You can proceed now, but you are adviced to\n"
- "#define NEW_BON_INVOKE in Component.h, and implement other\n"
- "modifications as described at the top of the ComponentObj.cpp file");
+ AfxMessageBox(_T("This interpreter has been upgraded to the new component interface \n")
+ _T("but the user-provided files (Component.cpp and Component.h) \n")
+ _T("use the deprecated interface. You can proceed now, but you are adviced to\n")
+ _T("#define NEW_BON_INVOKE in Component.h, and implement other\n")
+ _T("modifications as described at the top of the ComponentObj.cpp file"));
}
CComPtr<IMgaTerritory> terr;
COMTHROW(project->CreateTerritory(NULL, &terr));
@@ -570,11 +570,11 @@
COMTHROW(project->put_Preferences(prefs));
#else
if(pThis->interactive) {
- AfxMessageBox("This interpreter has been upgraded to the new component interface \n"
- "but the user-provided files (Component.cpp and Component.h) \n"
- "use the deprecated interface.\n"
- "#define NEW_BON_INVOKE in Component.h, and implement other\n"
- "modifications as described at the top of the ComComponent.cpp file");
+ AfxMessageBox(_T"This interpreter has been upgraded to the new component interface \n")
+ _T("but the user-provided files (Component.cpp and Component.h) \n")
+ _T("use the deprecated interface.\n")
+ _T("#define NEW_BON_INVOKE in Component.h, and implement other\n")
+ _T("modifications as described at the top of the ComComponent.cpp file"));
}
return E_MGA_NOT_IMPLEMENTED;
#endif
Modified: trunk/SDK/BON/Wizard/Templates/1033/BON2Component.cpp
==============================================================================
--- trunk/SDK/BON/Wizard/Templates/1033/BON2Component.cpp Tue Apr 12 14:48:33 2011 (r1264)
+++ trunk/SDK/BON/Wizard/Templates/1033/BON2Component.cpp Tue Apr 12 15:05:13 2011 (r1265)
@@ -80,7 +80,7 @@
invokeEx( project, focus, setModels, lParam );
#else
if ( m_bIsInteractive )
- AfxMessageBox("This BON2 Component does not support the obsolete invoke mechanism!");
+ AfxMessageBox(_T("This BON2 Component does not support the obsolete invoke mechanism!"));
#endif
}
@@ -108,7 +108,7 @@
void Component::objectInvokeEx( Project& project, Object& currentObject, const std::set<Object>& setSelectedObjects, long lParam )
{
if ( m_bIsInteractive )
- AfxMessageBox("This BON2 Component does not support objectInvokeEx method!");
+ AfxMessageBox(_T("This BON2 Component does not support objectInvokeEx method!"));
}
// ====================================================
Modified: trunk/SDK/BON/Wizard/Templates/1033/BONComponent.cpp
==============================================================================
--- trunk/SDK/BON/Wizard/Templates/1033/BONComponent.cpp Tue Apr 12 14:48:33 2011 (r1264)
+++ trunk/SDK/BON/Wizard/Templates/1033/BONComponent.cpp Tue Apr 12 15:05:13 2011 (r1265)
@@ -18,6 +18,6 @@
{
using namespace GMEConsole;
Console::Out::WriteLine("Interpreter started...");
- AfxMessageBox("GME Component --- Sample rf:" + builder.GetRootFolder()->GetName(), MB_OK | MB_ICONSTOP);
+ AfxMessageBox(_T("GME Component --- Sample rf:") + builder.GetRootFolder()->GetName(), MB_OK | MB_ICONSTOP);
Console::Out::WriteLine("Interpreter completed...");
}
More information about the gme-commit
mailing list