Strange function name in DLL-file

M

Magsto

Hi!

I try to do this:

Declare Function X_InitHardware Lib "X_Com.dll" () As Boolean

and then call this function, then I got this error:

Unable to find an entry point named X_InitHardware in DLL X_Com.dll.

I used Dependency Walker and turned off the "Undecorate C++ functions"
option and the functions looks like this:

?X_InitHardware@@YA_NXZ

How should I use this in the Declare statement in VB.NET??

When i Undecorate the answer is:

bool BR_InitHardware(void)

Regards,
Magnus
:shock:
 
M

Magsto

Use Dllimport and the EntryPoint attribute and put the "dirty"
function name witihin the quotes "...".

/m
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top