using unmaged dll in managed c++

  • Thread starter Thread starter Petded
  • Start date Start date
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
 
You need to see if you can find the header file for that DLL so that you can
declare it.
 
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"
 
You can use dumpbin.exe with the /exports argument to show the DLL's
function signatures.
 
Back
Top