Article View: borland.public.cppbuilder.nativeapi
Article #9487Re: Dll and FreeLibrary
From: Hugo Dias
Date: Mon, 05 Jul 2004 15:25
Date: Mon, 05 Jul 2004 15:25
23 lines
1447 bytes
1447 bytes
I didn't understood your question rigth. Sorry.
Try this in DllEntryPoint in your first DLL:
int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*)
{
switch(reason)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
hInstance = LoadLibrary ("test.dll");
break;
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
FreeLibrary(hInstance);
break;
}
return 1;
}
Regards,
Hugo Dias
Technical Details
Message-ID:
<40e972fc@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40e96f24$1@newsgroups.borland.com> <40e97125@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a37346c1cda36d51 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Hugo Dias" <synchron@nospam.synchron-systems.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40e96f24$1@newsgroups.borland.com> <40e97125@newsgroups.borland.com> Subject: Re: Dll and FreeLibrary Date: Mon, 5 Jul 2004 16:25:48 +0100 Lines: 27 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: 83.144.132.174 Message-ID: <40e972fc@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1089041148 83.144.132.174 (5 Jul 2004 08:25:48 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail