Article View: borland.public.cppbuilder.nativeapi
Article #9022Re: Odd LoadLibrary Failure
From: Remy Lebeau (TeamB)
Date: Tue, 17 Aug 2004 22:43
Date: Tue, 17 Aug 2004 22:43
12 lines
1236 bytes
1236 bytes
"Michael Lueck" <NmlueckO@SlueckPdataAsystemsM.com> wrote in message
news:41228167$1@newsgroups.borland.com...
> HMODULE Dll = LoadLibrary("SHELL32.DLL");
You should never use LoadLibrary() to load SHELL32.DLL or KERNEL32.DLL.
They are already loaded automatically at program startup, so use
GetModuleHandle() instead.
Gambit
Technical Details
Message-ID:
<412289f4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41228167$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8d61921d2e5eb0c4 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41228167$1@newsgroups.borland.com> Subject: Re: Odd LoadLibrary Failure Date: Tue, 17 Aug 2004 15:43:51 -0700 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <412289f4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1092782580 68.69.17.41 (17 Aug 2004 15:43:00 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail