using unmaged dll in managed c++

P

Petded

I have seen some articles on using unmanged dll's in managed c++, but
they all see to require knwing the paramters and structures of the the
dll functions to be called.

I have this freeware dll that provides socket functions, but there is
no info on its internal structure so i can declare its use correctly.
Is there some way to interogate the dll and get this information

thanks for any help
 
P

poojo hackma

You need to see if you can find the header file for that DLL so that you can
declare it.
 
B

Bruno van Dooren

I have seen some articles on using unmanged dll's in managed c++, but
they all see to require knwing the paramters and structures of the the
dll functions to be called.

that is no different from using it in other languages.
if you want to use a native dll, you have to have the header file that
declares all the
exported functions, regardless of which language you want to call it from
you probably also need the lib file, unless you want to load the dll by
calling LoadLibrary
I have this freeware dll that provides socket functions, but there is
no info on its internal structure so i can declare its use correctly.
Is there some way to interogate the dll and get this information

no.
having a native dll without knowing the function declarations is not going
to help you.
;-)


--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 
D

Dave Burns

You can use dumpbin.exe with the /exports argument to show the DLL's
function signatures.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top