httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: another naming question
Date Fri, 26 Dec 1997 14:24:51 GMT
Alexei Kosut wrote:
> 
> On Fri, 26 Dec 1997, Ben Laurie wrote:
> 
> > Alexei Kosut wrote:
> > > int some_function(char *argument) {
> > >     return (GetProcAddress(LoadLibrary("somelibrary.dll"), 47)(argument);
> > > }
> > >
> > > That's not quite right - it does caching so it only loads a file once, and
> > > only loads each symbol once, and I'm not sure that's valid C, or that I've
> > > got the right function names - but basically replacing the 47 with
> > > "some_function" would make things work as I want. I should go check the
> > > documentation.
> >
> > You should, because it already works the way you want...
> 
> Really? That'd be great. I haven't actually tried it, but last time I
> asked (a few months ago), a few of the Win32 people claimed profusely
> that DLLs were linked ordinally.

Hang on - your example was of dynamic linkage, which can either be done
by function name or ordinal. Static linkage is a different matter. The
thing to do there is to use a .DEF file to pin the ordinals.

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author
A.L. Digital Ltd,     |http://www.algroup.co.uk/Apache-SSL
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Mime
View raw message