Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

export function in a DLL

Status
Not open for further replies.

ceodav

Programmer
Feb 21, 2003
106
IT
Hi,

i developed my first DLL in VC++ 6 by using __declspec(dllexport) to export function.

Actually if a look inside th e dll once compiled i see the namen of the exported functions with strange characters

such as

?GetVersion@@YGJPAXJ@Z

instead of

GetVersion


How this happens?

if i want to use this dll in other project either VC++ or VB i must call it as ?GetVersion@@YGJPAXJ@Z...
is there a way to get rid of the problem?

many thanks


Davide
 
Hi ceodav,

Had the same problem of odd characters appearing in VC++ dll export functions.
Have just found an answer to it on this site: look at faq222-893

Hope this helps as much as it did for me.

dodgyman
 
hi,

i found somethin similar on internet and the solution is to write the name in a DEF file.


thank you

bye

Davide


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top