🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: DllMain vs DllEntryPoint

#4228
From: JF Jolin
Date: Wed, 08 Mar 2006 16:26
24 lines
1512 bytes
5 Mar 2006 15:58:34 +0100, nicolasr <nicolasrNOSPAMATSIGNgmx.net> wrote:

> 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: <ops53ry5hgz6rw7b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ca089694a98ab44b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: DllMain vs DllEntryPoint
References: <440afc9e@newsgroups.borland.com>
Message-ID: <ops53ry5hgz6rw7b@newsgroups.borland.com>
Content-Type: text/plain; charset=iso-8859-15; format=flowed
From: JF Jolin <jfj@nospam.com>
MIME-Version: 1.0
Date: Wed, 08 Mar 2006 11:26:55 -0500
User-Agent: Opera7.11/Win32 M2 build 2887
NNTP-Posting-Host: 66.158.141.21
X-Trace: newsgroups.borland.com 1141835206 66.158.141.21 (8 Mar 2006 08:26:46 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.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