472,139 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,139 software developers and data experts.

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 1878
Banfa
9,065 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,065 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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.