Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Why aren't there name clashes?
Sat, Dec 1 2007 4:49 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

With multiple textfilters/wordgenerators all exporting the same functions why aren't there name clashes? I don't understand and would like enlightening.

Roy Lambert
Mon, Dec 3 2007 8:13 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< With multiple textfilters/wordgenerators all exporting the same functions
why aren't there name clashes? I don't understand and would like
enlightening. >>

Where/why would you expect a name clash ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Dec 4 2007 3:29 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


><< With multiple textfilters/wordgenerators all exporting the same functions
>why aren't there name clashes? I don't understand and would like
>enlightening. >>
>
>Where/why would you expect a name clash ?


Dunno really just when I used dll's last I seem to recall running into a problem with exporting the same function name twice.

Roy Lambert
Tue, Dec 4 2007 5:01 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Dunno really just when I used dll's last I seem to recall running into a
problem with exporting the same function name twice. >>

Yes, but the functions aren't being exported twice in the same DLL, and the
function addresses are grabbed by EDB on the basis of which DLL they are
being called for.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Dec 4 2007 5:17 PMPermanent Link

Eryk Bottomley
Roy Lambert wrote:

> Dunno really just when I used dll's last I seem to recall running into a problem with exporting the same function name twice.

Functions in DLLs are called by address. The only thing you need the
name for is to stitch up the function pointers with GetProcAddress and
that takes the hModule returned by LoadLibrary to resolve the scope.

This is basically the same as normal pascal code where you can have
procedures with the exact same names in multiple units with the unit
name being used to resolve the scope.

Eryk
Wed, Dec 5 2007 4:30 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Eryk


Thank you both. I feel happier now.

Roy Lambert
Image