]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dde.cpp
add wrappers to avoid compiling code which will never be used
[wxWidgets.git] / src / msw / dde.cpp
index bb85ac799a043ff2d3d3660f17dead15b70d477d..ce2f37211b4e7af644a3e125ecb7b39723e65bd3 100644 (file)
@@ -1068,7 +1068,7 @@ static HSZ DDEAtomFromString(const wxString& s)
 {
     wxASSERT_MSG( DDEIdInst, wxT("DDE not initialized") );
 
-    HSZ hsz = DdeCreateStringHandle(DDEIdInst, (wxChar*)s.wx_str(), DDE_CP);
+    HSZ hsz = DdeCreateStringHandle(DDEIdInst, wxMSW_CONV_LPTSTR(s), DDE_CP);
     if ( !hsz )
     {
         DDELogError(_("Failed to create DDE string"));