🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: DllEntryPoint

#9131
From: Bob Gonder
Date: Tue, 27 Jul 2004 16:53
35 lines
2522 bytes
Andrue Cope [TeamB] wrote:

>Kathleen Beaumont wrote:
>
>> PROBLEM: My implementation of DllEntryPoint does not get accessed.

>Same here.
>In our case DLLEntryPoint doesn't do anything anyway (it's an old DLL
>and we export our own Init() and Done() functions but I did wonder
>about it the other day.

Maybe they need to be named DllMain ?

From BCB help:
"DllEntryPoint is a placeholder for the library-defined function name.
The actual name must be specified at build time. For more information,
see the documentation included with your development tools."

From MSDN:
"To initialize non-MFC DLLs, your DLL source code must contain a
function called DllMain. The following code presents a basic skeleton
showing what the definition of DllMain might look like:
{code}
Note   The Platform SDK documentation for DllEntryPoint says that the
actual name of the entry-point function must be specified on the
linker command line with the /ENTRY option. With Visual C++, you do
not need to use the /ENTRY option if the name of your entry-point
function is DllMain. In fact, if you do use the /ENTRY option and name
your entry-point function something other than DllMain, the C run-time
library will not get initialized properly."

Andrue, is there some reason you don't just remove the (default)
startup code? According to this it is optional.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic_link_library_entry_point_function.asp
"A DLL can optionally specify an entry-point function"
Technical Details
Message-ID: <fovcg0l0499pl4o790kp7cc6b7deacf12b@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.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
References: <41066ED9.7030105@catalinasystems.com> <41067ac2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,542429ed898459fa
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: DllEntryPoint
Date: Tue, 27 Jul 2004 09:53:34 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <fovcg0l0499pl4o790kp7cc6b7deacf12b@4ax.com>
References: <41066ED9.7030105@catalinasystems.com> <41067ac2$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.41.210.184
X-Trace: newsgroups.borland.com 1090947212 65.41.210.184 (27 Jul 2004 09:53:32 -0700)
Lines: 37
Path: arc1-ca.pugleaf.net!g2news1.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