🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: access function in dll

#328
From: Remy Lebeau (TeamB)
Date: Wed, 30 Apr 2008 16:28
39 lines
2447 bytes
"Denville Longhurst" <denville@metco.co.uk> wrote in message 
news:4818202a$1@newsgroups.borland.com...

> The function is absolutely fundamental, the support documentation
> states that it must be the first function called to get a handle to
> one or more embedded devices attached to the network.

Then it should be exported properly.  If it is not, then the DLL author 
likely goofed up when compiling it.

> I examined the .dll using a program called WinHex which
> provides a hex and an ascii dump of any file.

That is not the best way to examine executables.  I suggest you use an 
actual PE viewing tool instead.  That will show you the actual exports table 
(and imports, resources, etc).

> All of the functions within the dll are listed twice

Which means nothing without knowing what kind of tables they are actually 
listed in.

> once in what is obviously the export list, and again later I
> presume at the implementation

Implementation names are not stored anywhere in the DLL.  They are resolved 
to memory addresses by the compiler.  The exports table is a look-up table 
that maps the exported name to the cooreponding address within the DLL.

> I think the dll supplied with this sdk must be broken, I just wanted to 
> check that MS hadn't added some new mechanism
> that I wasn't aware of.

Which DLL specifically are you actually trying to use?  Which function?  Is 
this a Microsoft DLL, or a third-party DLL?


Gambit 
Technical Details
Message-ID: <48189e32$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <4817969d$1@newsgroups.borland.com> <4817ac85$1@newsgroups.borland.com> <4818202a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6110533675898442
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4817969d$1@newsgroups.borland.com> <4817ac85$1@newsgroups.borland.com> <4818202a$1@newsgroups.borland.com>
Subject: Re: access  function in dll
Date: Wed, 30 Apr 2008 09:28:09 -0700
Lines: 41
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 207.178.157.90
Message-ID: <48189e32$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1209572914 207.178.157.90 (30 Apr 2008 09:28:34 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail