473,326 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 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 2007
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

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

Similar topics

10
by: Calvin FONG | last post by:
Dear all, Are there any utility that can be call by python to create self extracting zip file. I'm now using the powerarchiever. But the command line options aren't flexible enough. Basically, I...
2
by: Steve | last post by:
Hi, I have a very long string, someting like: DISPLAY=localhost:0.0,FORT_BUFFERED=true, F_ERROPT1=271\,271\,2\,1\,2\,2\,2\,2,G03BASIS=/opt/g03b05/g03/basis,...
5
by: Astra | last post by:
Hi All Is there an ASP way of extracting the height and width of a swf file so that I can specify these dims when adding the whole OBJECT code to the web page? Thanks Robbie
3
by: Tobias Froehlich | last post by:
Hi! is it possible to extract all the code of a project (or a single .cs file) into a text file? I mean of course I can just do ctrl-c and ctrl-v, but it would be great if the colors would be...
6
by: marco_segurini | last post by:
Hi, the following sample code shows a compiler error I get trying to build some old code with the last CL compiler (vers 13.10.3077): //----- begin #include <iostream> namespace ns {
51
by: moosdau | last post by:
my code: do { printf("please input the dividend and the divisor.\n"); if(!scanf("%d%d",&dend,&dor)) { temp1=1; fflush(stdin); } else
5
by: Filippo Bettinaglio | last post by:
I have a DLL written in C++ (unmanaged), which I want to inteface with. I created a standard window form program with VC++ 2005, all fine I have imported an .h file the .lib file and all works. ...
3
by: Clarisa | last post by:
Hello Folks I am working on extracting lines of data in a text file based on the string it contains. This is the text file called info.txt:
2
by: =?Utf-8?B?a3VuYWwgcyBwYXRlbA==?= | last post by:
Hi all, If I want to extract all the function names in a C file programatically then what would be the best approach for that ? Kunal
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.