Article View: borland.public.cppbuilder.nativeapi
Article #11923Re: DLL
From: Dennis Jones
Date: Sun, 11 Jan 2004 18:32
Date: Sun, 11 Jan 2004 18:32
25 lines
1543 bytes
1543 bytes
"Oliver Young" <none> wrote in message
news:40011e35@newsgroups.borland.com...
>
> LoadLibraby() fails on Win98 (PI 133 MHz, 24 MB RAM). Why? DLL was
> created using M$ VC++ 6.
>
> This is what I am doing:
>
> HINSTANCE myApp2DLL;
>
> void __fastcall TMainForm::FormCreate(TObject *Sender)
> {
> myApp2DLL = LoadLibrary("myApp2");
>
> if (myApp2DLL == NULL) {
> ShowMessage("Can't find myApp2.dll.");
> }
> }
If you want to know _why_ it is failing, call GetLastError() immediately
after it fails. GetLastError() will give you an error code that you can
look up in winerror.h that will tell you the reason for the failure.
- Dennis
Technical Details
Message-ID:
<400196ca$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40011e35@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,36ef41348b439955 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-11 10:39:31 PST From: "Dennis Jones" <djones@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40011e35@newsgroups.borland.com> Subject: Re: DLL Date: Sun, 11 Jan 2004 10:32:43 -0800 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 204.200.27.7 Message-ID: <400196ca$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073845962 204.200.27.7 (11 Jan 2004 10:32:42 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail