473,378 Members | 1,571 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,378 software developers and data experts.

Examine the exported functions of a 'native' DLL

I have a non-COM, non-.NET DLL, apparently written in C++ but for
which there is no source available (so I am told). I have tried the
DumpBin utility and Dependancy Walker to examine the exported
functions so that I can P/Invoke them from C# but I only ever see the
names of the functions, never the full signature. I realize I might
not be able to get the actual as-in-code definition, but there must be
SOME way to infer this, isn't there?

Thanks,
Richard
Nov 15 '05 #1
1 2773
Hi Richard,

You can not get function signatures from a native DLL file simple because
they are not there. Native DLLs doesn't have any kind of metadata that's why
you should either know the prototypes or you should have a *.h file.

However, if you have c++ style global function (no c-style) the names are
decorated so if you know the compiler used to build that DLL you may decode
the function prototypes from the function name decoration.

--
B\rgds
100

"Richard A. Lowe" <ch*****@yahoo.com> wrote in message
news:2a**************************@posting.google.c om...
I have a non-COM, non-.NET DLL, apparently written in C++ but for
which there is no source available (so I am told). I have tried the
DumpBin utility and Dependancy Walker to examine the exported
functions so that I can P/Invoke them from C# but I only ever see the
names of the functions, never the full signature. I realize I might
not be able to get the actual as-in-code definition, but there must be
SOME way to infer this, isn't there?

Thanks,
Richard

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ian | last post by:
Peace, language lawyers! I'm developing a (static) library for a "memory-challenged" platform (ie, mobile). I want to (force the compiler to) inline some functions -- that are not meant to be...
1
by: vijay | last post by:
I'm having trouble with calling an exported function in a native DLL compiled with eMbedded Visual C++ using C#. Basicly, I have one exported function in the DLL: whenever i execute this exe to...
3
by: Kevin Aubuchon | last post by:
Hello, I need to use a Win32 DLL for a C# client. Any advantage exposing my functions as a COM object versus exported C functions? There will only be a few function calls. Using COM seems like...
0
by: Richard | last post by:
In VB.NET, I am successfully calling C++ functions and subroutines that were exported from a DLL. Is it also possible in VB.NET to directly access a variable that was exported? Specifically, the...
9
by: farseer | last post by:
Hi, Using a disassembler, i am able to see the exported functions in a dll. My question is, how do i make a call to those functions and compile my code if i do not have the header?
1
by: Mohammad Omer | last post by:
I am writing code for creating DLL using vs2k5. My project is using Crypto++ lib project, which has a function (ComputeHash), and with the same name of function I have written in project with a...
6
by: Gerhard Prilmeier | last post by:
Hello, I have an unmanaged C++ API that uses virtual functions, like this: class A { public: virtual void handleMe(){} };
4
by: Anonymous | last post by:
Is it possible to have an ATL project that also contains win32 exported classes and functions?. I have a project (module) that needs to export/expose a few ATL objects, however, other modules...
4
by: =?Utf-8?B?SmVzc2ljYQ==?= | last post by:
Hi All, I know that I can use the GetProcAddress to get the proc address of a global exported function from a WIn32 dll. But if I have an exported class in the dll, is there a way to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.