[Mobies-commit] [commit] r4315 - UDM/trunk/src/UIntWizVS/Templates/1033
ksmyth at redhat3.isis.vanderbilt.edu
ksmyth at redhat3.isis.vanderbilt.edu
Wed Sep 17 12:36:23 CDT 2014
Author: ksmyth
Date: Wed Sep 17 12:36:23 2014
New Revision: 4315
Log:
Fix warnings on x64
Modified:
UDM/trunk/src/UIntWizVS/Templates/1033/UdmConsole.cpp
Modified: UDM/trunk/src/UIntWizVS/Templates/1033/UdmConsole.cpp
==============================================================================
--- UDM/trunk/src/UIntWizVS/Templates/1033/UdmConsole.cpp Wed Sep 17 12:36:17 2014 (r4314)
+++ UDM/trunk/src/UIntWizVS/Templates/1033/UdmConsole.cpp Wed Sep 17 12:36:23 2014 (r4315)
@@ -84,7 +84,7 @@
break;
}
} else {
- if(S_OK != gmeoleapp->ConsoleMessage(CComBSTR(message.length(), message.c_str()), type))
+ if(S_OK != gmeoleapp->ConsoleMessage(CComBSTR((int)message.length(), message.c_str()), type))
throw udm_exception("Could not write to GME console.");
}
}
@@ -103,7 +103,7 @@
break;
}
} else {
- if(S_OK != gmeoleapp->ConsoleMessage(CComBSTR(message.length(), message.c_str()), type))
+ if(S_OK != gmeoleapp->ConsoleMessage(CComBSTR((int)message.length(), message.c_str()), type))
throw udm_exception("Could not write to GME console.");
}
}
@@ -111,13 +111,13 @@
void Console::setContents(const std::string& contents)
{
if (gmeoleapp != 0)
- if(S_OK != gmeoleapp->put_ConsoleContents( CComBSTR(contents.length(),contents.c_str()) ))
+ if(S_OK != gmeoleapp->put_ConsoleContents( CComBSTR((int)contents.length(),contents.c_str()) ))
throw udm_exception("Could not set the contents of GME console.");
}
void Console::setContents(const std::wstring& contents)
{
if (gmeoleapp != 0)
- if(S_OK != gmeoleapp->put_ConsoleContents( CComBSTR(contents.length(),contents.c_str()) ))
+ if(S_OK != gmeoleapp->put_ConsoleContents( CComBSTR((int)contents.length(),contents.c_str()) ))
throw udm_exception("Could not set the contents of GME console.");
}
More information about the Mobies-commit
mailing list