🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4232

Re: DllMain vs DllEntryPoint

#4232
From: nicolasr
Date: Thu, 09 Mar 2006 01:38
33 lines
1932 bytes
thanks for your reply!
However, I think I do not quite understand the distinction you make.
My DLL is a COM in-process server. But does instantiating a COM
server not result in a call to LoadLibrary() finally?
I tested the DLL in a COM environment and now also called LoadLibrary()
on it myself. In both cases my DllMain() is not called :-(

Nick


>> Problem: the above DllMain() gets never called. Instead
>> the DllEntryPoint() function seems to be called directly.
>> Like BCB ignores the direction to call DllMain().
>>
>>
>> Any ideas how to solve this?
>
>
> Here is my understanding of entry points vs Dll.
>
> When loading time is involved the entry point is DllMain.
> (Ex. COM in-process server DLL).
>
> When running time is involved the entry point is DllEntryPoint.
> (Ex. LoadLibrary get called).
>
> So to answer your question.
> If DllMain never gets called could it be because of the nature of the call 
> ?
>
>
> -- 
> JF Jolin 
Technical Details
Message-ID: <440f871c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <440afc9e@newsgroups.borland.com> <ops53ry5hgz6rw7b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ca089694a98ab44b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <440afc9e@newsgroups.borland.com> <ops53ry5hgz6rw7b@newsgroups.borland.com>
Subject: Re: DllMain vs DllEntryPoint
Date: Thu, 9 Mar 2006 02:38:36 +0100
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 84.174.135.23
Message-ID: <440f871c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1141868316 84.174.135.23 (8 Mar 2006 17:38:36 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail