]> git.saurik.com Git - wxWidgets.git/commitdiff
BC++ 5 does not have Unicode version of GetProcAddress.
authorOve Kaaven <ovek@arcticnet.no>
Mon, 3 Jan 2000 18:48:02 +0000 (18:48 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Mon, 3 Jan 2000 18:48:02 +0000 (18:48 +0000)
Giving it a plain ASCII string in an #if

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/app.cpp
src/msw/thread.cpp

index 5f32a13e2041707c2ed66d91e153c0543a7ee48a..f1aad3735ee42c024863c7eb1f4b7ca5e7cb7b76 100644 (file)
@@ -1152,7 +1152,11 @@ int wxApp::GetComCtl32Version()
                     FARPROC theProc = ::GetProcAddress
                                         (
                                          hModuleComCtl32,
+#if defined(__BORLANDC__) && (__BORLANDC__ <= 0x520)
+                                         "InitCommonControlsEx"
+#else
                                          _T("InitCommonControlsEx")
+#endif
                                         );
 
                     if ( !theProc )
@@ -1167,7 +1171,11 @@ int wxApp::GetComCtl32Version()
                         theProc = ::GetProcAddress
                                     (
                                      hModuleComCtl32,
+#if defined(__BORLANDC__) && (__BORLANDC__ <= 0x520)
+                                     "InitializeFlatSB"
+#else
                                      _T("InitializeFlatSB")
+#endif
                                     );
                         if ( !theProc )
                         {
index 0fd0fcdfadc02c14528f23fa93fd1dba83abdff0..aadfc9f070c11c3ded380682ba676db8dab08760 100644 (file)
@@ -626,7 +626,12 @@ bool wxThread::SetConcurrency(size_t level)
         if ( hModKernel )
         {
             pfnSetProcessAffinityMask = (SETPROCESSAFFINITYMASK)
-                ::GetProcAddress(hModKernel, _T("SetProcessAffinityMask"));
+                ::GetProcAddress(hModKernel,
+#if defined(__BORLANDC__) && (__BORLANDC__ <= 0x520)
+                                 "SetProcessAffinityMask");
+#else
+                                 _T("SetProcessAffinityMask"));
+#endif
         }
 
         // we've discovered a MT version of Win9x!