Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2006

Tip: Looking for answers? Try searching our database.

using unmaged dll in managed c++

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Petded - 29 Jun 2006 17:19 GMT
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
poojo hackma - 29 Jun 2006 17:38 GMT
You need to see if you can find the header file for that DLL so that you can
declare it.
Bruno van Dooren - 29 Jun 2006 20:01 GMT
>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.
;-)

Signature

Kind regards,
   Bruno van Dooren
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"

Dave Burns - 07 Jul 2006 17:16 GMT
You can use dumpbin.exe with the /exports argument to show the DLL's
function signatures.

>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
[quoted text clipped - 5 lines]
>
> thanks for any help

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.