BC++ 5 does not have Unicode version of GetProcAddress.
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
This commit is contained in:
parent
0e89bb17e8
commit
a8ee71c702
@ -1152,7 +1152,11 @@ int wxApp::GetComCtl32Version()
|
|||||||
FARPROC theProc = ::GetProcAddress
|
FARPROC theProc = ::GetProcAddress
|
||||||
(
|
(
|
||||||
hModuleComCtl32,
|
hModuleComCtl32,
|
||||||
|
#if defined(__BORLANDC__) && (__BORLANDC__ <= 0x520)
|
||||||
|
"InitCommonControlsEx"
|
||||||
|
#else
|
||||||
_T("InitCommonControlsEx")
|
_T("InitCommonControlsEx")
|
||||||
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( !theProc )
|
if ( !theProc )
|
||||||
@ -1167,7 +1171,11 @@ int wxApp::GetComCtl32Version()
|
|||||||
theProc = ::GetProcAddress
|
theProc = ::GetProcAddress
|
||||||
(
|
(
|
||||||
hModuleComCtl32,
|
hModuleComCtl32,
|
||||||
|
#if defined(__BORLANDC__) && (__BORLANDC__ <= 0x520)
|
||||||
|
"InitializeFlatSB"
|
||||||
|
#else
|
||||||
_T("InitializeFlatSB")
|
_T("InitializeFlatSB")
|
||||||
|
#endif
|
||||||
);
|
);
|
||||||
if ( !theProc )
|
if ( !theProc )
|
||||||
{
|
{
|
||||||
|
@ -626,7 +626,12 @@ bool wxThread::SetConcurrency(size_t level)
|
|||||||
if ( hModKernel )
|
if ( hModKernel )
|
||||||
{
|
{
|
||||||
pfnSetProcessAffinityMask = (SETPROCESSAFFINITYMASK)
|
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!
|
// we've discovered a MT version of Win9x!
|
||||||
|
Loading…
Reference in New Issue
Block a user