www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - run time dll loading

reply Denis R <Denis_member pathlink.com> writes:
Hello,

I was just wondering, is there already any tool/method that would allow me to
give the symbol (function) name 'as-is' to get it from a freshly loaded dll, and
not by first checking the decorated name under the Exports in the *.map file ?
Jun 27 2005
next sibling parent Trevor Parscal <trevorparscal hotmail.com> writes:
Denis R wrote:
 Hello,
 
 I was just wondering, is there already any tool/method that would allow me to
 give the symbol (function) name 'as-is' to get it from a freshly loaded dll,
and
 not by first checking the decorated name under the Exports in the *.map file ?
 
 

-- Thanks, Trevor Parscal www.trevorparscal.com trevorparscal hotmail.com
Jun 27 2005
prev sibling next sibling parent Denis R <denis_r telkomsa.net> writes:
No, I only seen that example in the D docs.
And, i dont think its that nice to each time look up the symbol

On Mon, 27 Jun 2005 20:35:46 -0700
Trevor Parscal <trevorparscal hotmail.com> wrote:

 Denis R wrote:
 Hello,
 
 I was just wondering, is there already any tool/method that would allow me to
 give the symbol (function) name 'as-is' to get it from a freshly loaded dll,
and
 not by first checking the decorated name under the Exports in the *.map file ?
 
 

-- Thanks, Trevor Parscal www.trevorparscal.com trevorparscal hotmail.com

Jun 28 2005
prev sibling parent pragma <pragma_member pathlink.com> writes:
In article <d9p0hl$1s7h$1 digitaldaemon.com>, Denis R says...
Hello,

I was just wondering, is there already any tool/method that would allow me to
give the symbol (function) name 'as-is' to get it from a freshly loaded dll, and
not by first checking the decorated name under the Exports in the *.map file ?

Have you tried using "extern(C)" or "extern(Windows)" for your exported functions in your dll code? I forget which removes the decoration, but one of them does do this. - EricAnderton at yahoo
Jun 30 2005