469,298 Members | 2,148 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,298 developers. It's quick & easy.

extracting function info from vc++6.0 dll

Hello,

I'm building an application in c# which has to address a vc++ 6.0 dll. I need to extract the function header's information so I can make a wrapper for c# to communicate with the dll (not com dll)

Does anyone know of a tool that can do this. I do not need the code from the dll because this dll will remain as is. It's for a client. They just need to have a test app which uses this dll in dotNet

thanks in advance
Jul 24 '07 #1
5 1841
Banfa
9,064 Expert Mod 8TB
Which function?
Jul 24 '07 #2
weaknessforcats
9,208 Expert Mod 8TB
This looks like C# interoperability.

I am moving this to the .NET forum.
Jul 24 '07 #3
It's a function written in c++, but I do not have the function header or information about it. The only thing I now is that it receives probebly 3 parameters: 2 file locations (probably LPTSTR 's) and a reference to a file. The return type is also unknown

I tried to get some information with the following statement:

dumpbin -exports dll1.dll

Wich can show me the function name (if the code of the function is setup to represent the name of the function as truely and not decorated) you should see how many bytes the parameters have (that's the only thing the statement does)

What i need is the function header so I can write a wrapper class in c# which marshalls the parameters so it can convert the parameters from c# to vs c++6.0

As I said, I do not need to know the base code of the dll, only the function header

thanks for any help

JeanClaude
Jul 26 '07 #4
Which function?
Sorry, clicked the wrong button


It's a function written in c++, but I do not have the function header or information about it. The only thing I now is that it receives probebly 3 parameters: 2 file locations (probably LPTSTR 's) and a reference to a file. The return type is also unknown

I tried to get some information with the following statement:

dumpbin -exports dll1.dll

Wich can show me the function name (if the code of the function is setup to represent the name of the function as truely and not decorated) you should see how many bytes the parameters have (that's the only thing the statement does)

What i need is the function header so I can write a wrapper class in c# which marshalls the parameters so it can convert the parameters from c# to vs c++6.0

As I said, I do not need to know the base code of the dll, only the function header

thanks for any help

JeanClaude
Jul 26 '07 #5
Banfa
9,064 Expert Mod 8TB
If it is a standard runtime DLL then you ought to be able to use the name of the function to look up what parameters and return type it has on the web.

On the other hand if it is a third party DLL you may be a little stuck.

Post the name of one of the functions you are trying to wrap.
Jul 26 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by Calvin FONG | last post: by
2 posts views Thread by Steve | last post: by
3 posts views Thread by Tobias Froehlich | last post: by
6 posts views Thread by marco_segurini | last post: by
5 posts views Thread by Filippo Bettinaglio | last post: by
2 posts views Thread by =?Utf-8?B?a3VuYWwgcyBwYXRlbA==?= | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.