]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dde.cpp
Added GUI part of AppTraits for OS/2.
[wxWidgets.git] / src / msw / dde.cpp
index ce6914ee5c22028de5f2c5dd3037ebd196978fe4..1ddd1a726d719001543bbc61ace2a540b4d8af8a 100644 (file)
@@ -17,7 +17,7 @@
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "dde.h"
 #endif
 
@@ -965,8 +965,7 @@ static wxString DDEStringFromAtom(HSZ hsz)
     static const size_t len = 256;
 
     wxString s;
-    (void)DdeQueryString(DDEIdInst, hsz, s.GetWriteBuf(len), len, DDE_CP);
-    s.UngetWriteBuf();
+    (void)DdeQueryString(DDEIdInst, hsz, wxStringBuffer(s, len), len, DDE_CP);
 
     return s;
 }