🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: access function in dll

#321
From: Remy Lebeau (TeamB)
Date: Tue, 29 Apr 2008 23:17
44 lines
2306 bytes
"Denville Longhurst" <denville@metco.co.uk> wrote in message 
news:4817969d$1@newsgroups.borland.com...

> I need to use this .dll in my app.  The thing is that it contains
> an essential function that is not specifically exported (ie I run
> impdef on the .dll and the func is not listed.  I run implib and
> examine it (WinHex) and there is no trace of the function name.

Then you will not be able to use it at all.

> I have tried loading the dll both statically and dynamically but
> I can't get to the function.

You can't access something that is not exported

> If I examine the actual .dll

Examined how exactly?  Are you just looking at the raw binary data, or are 
you using a PE explorer tool?

> So question is, does vc++ have some other mechanism to access
> this function, and can I tap into it?

No.

> the function is clearly intended to be exported

Then it would be listed in the export table so GetProcAddress() could find 
it.

> it is published in the .h file

That does not necessarily mean that the function was meant to be exported. 
The DLL could have simply been compiled using the same .h file, where the .h 
file contains declarations for its internal functions as well as its public 
functions.

> and is clearly doccumented, indeed it is essential to the application.

Then it would have been exported from the DLL to begin with.


Gambit 
Technical Details
Message-ID: <4817ac85$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <4817969d$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>
Subject: Re: access  function in dll
Date: Tue, 29 Apr 2008 16:17:00 -0700
Lines: 46
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: <4817ac85$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1209511045 207.178.157.90 (29 Apr 2008 16:17:25 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail