HighTechTalks DotNet Forums  

Exported C++ class

Dotnet General Discussions microsoft.public.dotnet.general


Discuss Exported C++ class in the Dotnet General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Gene Daniel
 
Posts: n/a

Default Exported C++ class - 08-10-2005 , 06:35 PM






Hi,

I have a DLL that has a C++ class exported. Is there any way that I can
use this class in a C# program? I know about the COM interop but this class
isn't a COM class. I also know about accessing functions in DLLs using the
DllImport attribute but I don't think that imports classes (or does it??).
Any help will be appreciated. Thanks!

Gene



Reply With Quote
  #2  
Old   
Gene Daniel
 
Posts: n/a

Default Re: Exported C++ class - 08-11-2005 , 09:40 AM






Thanks!

"Mattias Sjögren" <mattias.dont.want.spam (AT) mvps (DOT) org> wrote

Quote:
Gene,

I have a DLL that has a C++ class exported. Is there any way that I
can
use this class in a C# program?

Not directly no. The easiest way to do it would be to write a COM or
managed wrapper in C++.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.