diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 5f32a13e20..f1aad3735e 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -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 ) { diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 0fd0fcdfad..aadfc9f070 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -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!