473,326 Members | 2,010 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.

DLL EntryPoints

Another question:

I'm sitting with a dll/ocx that I wish to use in my application. The thing
is, the manual or help/information of any kind about it, is missing!.

Is there a tool I can run against the dll/ocx that will list for me all the
exposed methods/properties?

Anybody?
Thanks
Tazz
Nov 3 '05 #1
6 1722
If this is COM based, you could add a reference to this library and .NET
will create a wrapper for you.
If this is a regular DLL you'll have to declare the functions manually...

Have you tried to search for some documentation on the net ?

--
Patrice

"Tazz" <Ta**@discussions.microsoft.com> a écrit dans le message de
news:14**********************************@microsof t.com...
Another question:

I'm sitting with a dll/ocx that I wish to use in my application. The thing
is, the manual or help/information of any kind about it, is missing!.

Is there a tool I can run against the dll/ocx that will list for me all the exposed methods/properties?

Anybody?
Thanks
Tazz

Nov 3 '05 #2
That's the thing, I you had a regular dll, but received no documentation for
it, how would you go about finding out the names of those darn entry points ?

I'm restricted to certain (and I have to specifiy them) work related-only
websites (bunch of mumbo jumbo!), so no search engines allowed for me
unfortunately. I will have to try at home sometime, but will keep on snooping
in MSDN in the meantime.

Hhmmn, ah well....thanks anyway Patrice

Chou
Tazz
"Patrice" wrote:
If this is COM based, you could add a reference to this library and .NET
will create a wrapper for you.
If this is a regular DLL you'll have to declare the functions manually...

Have you tried to search for some documentation on the net ?

--
Patrice

"Tazz" <Ta**@discussions.microsoft.com> a écrit dans le message de
news:14**********************************@microsof t.com...
Another question:

I'm sitting with a dll/ocx that I wish to use in my application. The thing
is, the manual or help/information of any kind about it, is missing!.

Is there a tool I can run against the dll/ocx that will list for me all

the
exposed methods/properties?

Anybody?
Thanks
Tazz


Nov 3 '05 #3
AFAIK no way as a regular DLL contains no or not enough metadata. Do you
know which API it is ? You should be still able to find in this file a table
of function names.Not usable but could give a clue to locate the
corresponding documentation...

If this is a Windows DLL, you can try
http://msdn.microsoft.com/library/de...y_category.asp

--
Patrice

"Tazz" <Ta**@discussions.microsoft.com> a écrit dans le message de
news:01**********************************@microsof t.com...
That's the thing, I you had a regular dll, but received no documentation for it, how would you go about finding out the names of those darn entry points ?
I'm restricted to certain (and I have to specifiy them) work related-only
websites (bunch of mumbo jumbo!), so no search engines allowed for me
unfortunately. I will have to try at home sometime, but will keep on snooping in MSDN in the meantime.

Hhmmn, ah well....thanks anyway Patrice

Chou
Tazz
"Patrice" wrote:
If this is COM based, you could add a reference to this library and .NET
will create a wrapper for you.
If this is a regular DLL you'll have to declare the functions manually...
Have you tried to search for some documentation on the net ?

--
Patrice

"Tazz" <Ta**@discussions.microsoft.com> a écrit dans le message de
news:14**********************************@microsof t.com...
Another question:

I'm sitting with a dll/ocx that I wish to use in my application. The thing is, the manual or help/information of any kind about it, is missing!.

Is there a tool I can run against the dll/ocx that will list for me
all the
exposed methods/properties?

Anybody?
Thanks
Tazz


Nov 3 '05 #4
> That's the thing, I you had a regular dll, but received no documentation for
it, how would you go about finding out the names of those darn entry points ?
By running Dumpbin.exe /exports or Depends.exe or similar tool. But just the
names isn't enough, you need the function signatures.

Have you considered contacting the DLL vendor and request some new
documentation?

so no search engines allowed for me unfortunately.


Jeez, if I were you I'd look for a new job.
Mattias

Nov 3 '05 #5
Patrice, I will give it a shot, but like a told Mattias, all that remains now
is to go the long route and phone around etc. to try and get hold of the
vendor.

Thanks again for all your help.
Happy coding!

Chou
Tazz
"Patrice" wrote:
AFAIK no way as a regular DLL contains no or not enough metadata. Do you
know which API it is ? You should be still able to find in this file a table
of function names.Not usable but could give a clue to locate the
corresponding documentation...

If this is a Windows DLL, you can try
http://msdn.microsoft.com/library/de...y_category.asp

--
Patrice

"Tazz" <Ta**@discussions.microsoft.com> a écrit dans le message de
news:01**********************************@microsof t.com...
That's the thing, I you had a regular dll, but received no documentation

for
it, how would you go about finding out the names of those darn entry

points ?

I'm restricted to certain (and I have to specifiy them) work related-only
websites (bunch of mumbo jumbo!), so no search engines allowed for me
unfortunately. I will have to try at home sometime, but will keep on

snooping
in MSDN in the meantime.

Hhmmn, ah well....thanks anyway Patrice

Chou
Tazz
"Patrice" wrote:
If this is COM based, you could add a reference to this library and .NET
will create a wrapper for you.
If this is a regular DLL you'll have to declare the functions manually...
Have you tried to search for some documentation on the net ?

--
Patrice

"Tazz" <Ta**@discussions.microsoft.com> a écrit dans le message de
news:14**********************************@microsof t.com...
> Another question:
>
> I'm sitting with a dll/ocx that I wish to use in my application. The thing > is, the manual or help/information of any kind about it, is missing!.
>
> Is there a tool I can run against the dll/ocx that will list for me all the
> exposed methods/properties?
>
> Anybody?
> Thanks
> Tazz


Nov 3 '05 #6
Tazz wrote:
I'm sitting with a dll/ocx that I wish to use in my application. The
thing is, the manual or help/information of any kind about it, is
missing!.

Is there a tool I can run against the dll/ocx that will list for me
all the exposed methods/properties?


If it exports C functions then you can use dumpbin /exports (this is
just a shim for the C++ link.exe tool, so you can use that as well).
This will give you the *name* or ordinal of the exported function.
Finding out the return value and parameters is more difficult. For that
you ideally need a header file (bit if you had that you would not have
to use dumpbin). If the function names are mangled (or decorated as
Microsoft calls it) you can decode the 'decoration' to get a list of
parameter types and return value. Microsoft provides a tool to do this
(I cannot remember its name) and there are instructions on the web
somewhere (again, I cannopt remember where, but a Google should get you
there). If the names are not mangled then you only recourse is to run an
application that uses it under a debugger and do an analysis of the
stack frame. That is not a simple thing to do.

Richard
--
http://www.grimes.demon.co.uk/workshops/fusionWS.htm
http://www.grimes.demon.co.uk/workshops/securityWS.htm
Nov 4 '05 #7

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

Similar topics

9
by: Robin Becker | last post by:
Does anyone know if it is feasible to have static libraries for both 2.3 and 2.4 compatible extensions. I'm worrying about libjpeg etc in a win32 environment. -- Robin Becker
33
by: Pushkar Pradhan | last post by:
I've a code in which I don't know how many elements an array may contain, BUT I know the max. no. of values it may have. So I do this malloc(MAXLEN), however I can use realloc(...) each time I add...
1
by: Ray Mitchell | last post by:
Hello, I have a C console application that I'd like to convert to C# (Windows 2000). It currently calls some functions in a GNU static library (.lib) so I've been compiling it with GNU (for...
20
by: Tim Mulholland | last post by:
This thread is intended to be more of a discussion thread - because i value the opinions of the posters in this newsgroup, and especially the MVPs like Nicholas Paladino and Jon Skeet (thanks to...
7
by: delphiconsultingguy | last post by:
Hello, I'm trying to convert a VB.Net app into C#. The VB app calls functions in an unmanaged DLL. I'm able to call most of the functions in the DLL from C# with the exception of the one below:...
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
7
by: Bobby C. | last post by:
My company is in the process of getting ready (well actually QTR 2 2004) to roll out a rewritten version of a vertical market application for the municipal market (small and medium sized cities). ...
2
by: Michael Kellogg | last post by:
I have a collection of objects that I am trying to display in a Windows Forms Datagrid. I have had problems doing this before, so the first time around I went and did a Grid.TableStyles.Clear...
6
by: Tazz | last post by:
Another question: I'm sitting with a dll/ocx that I wish to use in my application. The thing is, the manual or help/information of any kind about it, is missing!. Is there a tool I can run...
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
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...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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....

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.