• Welcome to Valhalla Legends Archive.
 

help

Started by Killa, December 17, 2003, 12:27 PM

Previous topic - Next topic

Killa

is there a way to figure out how to delcare a exported function of a c++ .dll in vb without knowing the function name and just having the .dll?

Adron

Quote from: Killa on December 17, 2003, 12:27 PM
is there a way to figure out how to delcare a exported function of a c++ .dll in vb without knowing the function name and just having the .dll?

Yes. It's called "reverse engineering".

Depending on what you know about the function, more or less reverse engineering may be required. You need to find the function name, which is very easy. You also need to find the correct arguments which can be anything from easy to extremely difficult.

This is all assuming that the function uses a calling convention that VB understands (currently only stdcall as far as I know).

Skywing

Quote from: Adron on December 17, 2003, 12:51 PM
Quote from: Killa on December 17, 2003, 12:27 PM
is there a way to figure out how to delcare a exported function of a c++ .dll in vb without knowing the function name and just having the .dll?

Yes. It's called "reverse engineering".

Depending on what you know about the function, more or less reverse engineering may be required. You need to find the function name, which is very easy. You also need to find the correct arguments which can be anything from easy to extremely difficult.

This is all assuming that the function uses a calling convention that VB understands (currently only stdcall as far as I know).
I think VB Expert Yoni could tell you about how to call cdecl dllexports in VB5.