adding intl.h and wxString -> char* conversion in DDEAtomFromString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -37,6 +37,8 @@
|
|||||||
|
|
||||||
#include "wx/module.h"
|
#include "wx/module.h"
|
||||||
#include "wx/dde.h"
|
#include "wx/dde.h"
|
||||||
|
#include "wx/intl.h"
|
||||||
|
|
||||||
|
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
|
|
||||||
@@ -898,7 +900,7 @@ static HSZ DDEAtomFromString(const wxString& s)
|
|||||||
{
|
{
|
||||||
wxASSERT_MSG( DDEIdInst, _T("DDE not initialized") );
|
wxASSERT_MSG( DDEIdInst, _T("DDE not initialized") );
|
||||||
|
|
||||||
HSZ hsz = DdeCreateStringHandle(DDEIdInst, s, DDE_CP);
|
HSZ hsz = DdeCreateStringHandle(DDEIdInst, (char*) s.c_str(), DDE_CP);
|
||||||
if ( !hsz )
|
if ( !hsz )
|
||||||
{
|
{
|
||||||
DDELogError(_("Failed to create DDE string"));
|
DDELogError(_("Failed to create DDE string"));
|
||||||
|
Reference in New Issue
Block a user