Article View: borland.public.cppbuilder.nativeapi
Article #13942Re: Still In Hell (LoadLibrary)
From: David
Date: Tue, 09 Sep 2003 14:12
Date: Tue, 09 Sep 2003 14:12
39 lines
1986 bytes
1986 bytes
Dumboo wrote:
> have u try adding this Macro ??
>
> #ifdef WINVER
> #undef WINVER
> #endif
>
> #define WINVER 0x0400
Can you give some clues why you think this will change the run time
behavior of LoadLibrary? I can not see why this would affect the
problem, especially as the compiled program works on Win98SE for my
tests. Also, the appropriate portion of winbase.h, which is where
LoadLibrary is defined, as far as I can tell, does not have conditionals
around it for winver. It only has conditionals for unicode and non-unicode.
//From winbase.h
...
WINBASEAPI
HMODULE
WINAPI
LoadLibraryA(
LPCSTR lpLibFileName
);
WINBASEAPI
HMODULE
WINAPI
LoadLibraryW(
LPCWSTR lpLibFileName
);
#ifdef UNICODE
#define LoadLibrary LoadLibraryW
#else
#define LoadLibrary LoadLibraryA
#endif // !UNICODE
...
David
Technical Details
Message-ID:
<3F5DDFC1.6060807@anonymous_one.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3F5D1326.2050005@anonymous_one.com> <3f5d7ac7@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,adeb054a441a66c4 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-09 07:30:38 PST Message-ID: <3F5DDFC1.6060807@anonymous_one.com> Date: Tue, 09 Sep 2003 09:12:17 -0500 From: David <david@anonymous_one.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Still In Hell (LoadLibrary) References: <3F5D1326.2050005@anonymous_one.com> <3f5d7ac7@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 4.72.25.244 X-Trace: newsgroups.borland.com 1063116593 4.72.25.244 (9 Sep 2003 07:09:53 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail