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 / .NET Framework / Component Services / July 2006

Tip: Looking for answers? Try searching our database.

DLL C++ export to .NET C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
onramp123@yahoo.com - 18 Jul 2006 16:50 GMT
apologies in advance if this topic has already been covered, but my
search in the newsgroups has yet to reveal the secret formula.

I've got a .NET C# application that invokes a classic C++ .DLL using
DllImport.   I'm working at source level with both .NET and the C++
DLL.  The DLL exports now appear to be mismatched to the C# wrappers.
For a reasonably large set of APIs this has now become a maintenance
issue.  My hunch is that a reference was originally added to the C#
project, and now it needs to be reinvoked or refreshed so to speak to
update the wrapper marshalling.

If not from within VS.NET, is there something like type library
importer to generate the C# wrappers from the C++ DLL exports ?

any ideas would be greatly appreciated....

/netguy
John Duval - 18 Jul 2006 18:15 GMT
Hi onramp123,
I don't know of any way to do this but you might want to check out this
tool:

http://www.paulyao.com/resources/tools/pinvoke.asp

Hope that helps.
John

> apologies in advance if this topic has already been covered, but my
> search in the newsgroups has yet to reveal the secret formula.
[quoted text clipped - 13 lines]
>
> /netguy

Rate this thread:







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.