]> git.saurik.com Git - wxWidgets.git/commitdiff
adding intl.h and wxString -> char* conversion in DDEAtomFromString
authorBart A.M. Jourquin <bart.jourquin@fucam.ac.be>
Wed, 19 Jan 2000 09:55:14 +0000 (09:55 +0000)
committerBart A.M. Jourquin <bart.jourquin@fucam.ac.be>
Wed, 19 Jan 2000 09:55:14 +0000 (09:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dde.cpp

index 0d084650d7322d82d4a3bac66921ccb6da12cc3b..6968b94312c94ec3bfec819ce36986c22516ce77 100644 (file)
@@ -37,6 +37,8 @@
 
 #include "wx/module.h"
 #include "wx/dde.h"
+#include "wx/intl.h"
+
 
 #include "wx/msw/private.h"
 
@@ -898,7 +900,7 @@ static HSZ DDEAtomFromString(const wxString& s)
 {
     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 )
     {
         DDELogError(_("Failed to create DDE string"));