PC Review


Reply
Thread Tools Rate Thread

Best way to use unmanaged C++ from C#

 
 
jaha@[REMOVE]jahamusic.com
Guest
Posts: n/a
 
      25th Feb 2004
I'm currently building a gui in C# in which i'd like to use my
extensive library of C++ classes. Ideally keeping the inheritence tree
intact. Right now I'm wrapping each unmanaged C++ class with a managed
C++ class. Is this the best way to go about things? Or can I use IJW
somehow? Or something different entirely?

Thanks in Advance,
Robert Conde
 
Reply With Quote
 
 
 
 
Ola Sprauten
Guest
Posts: n/a
 
      27th Feb 2004
I've had a similar problem. I can see two solutions:

1. You convert your library to managed c++. Might be a lot of work if we're
talking 100+ classes.

2. What I did was find the entry points into the unmanaged code library and
created wrappers that just wrapped those few classes.

Disclaimer: I am by no means an expert. :-)

I've done both, altho I did 1. the hard way with a very small set of classes
just as a test.

--Ola

<jaha@[REMOVE]jahamusic.com> wrote in message
news:(E-Mail Removed)...
> I'm currently building a gui in C# in which i'd like to use my
> extensive library of C++ classes. Ideally keeping the inheritence tree
> intact. Right now I'm wrapping each unmanaged C++ class with a managed
> C++ class. Is this the best way to go about things? Or can I use IJW
> somehow? Or something different entirely?
>
> Thanks in Advance,
> Robert Conde



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Manage in unmanaged easier or unmanaged in managed garlic Microsoft Dot NET Compact Framework 5 28th Apr 2008 04:07 PM
mixed managed/unmanaged in same exe... how-to hide unmanaged? mike Microsoft VC .NET 4 17th Dec 2007 05:15 PM
Access violation in unmanaged code: Linking managed with unmanaged static libs Pixel.to.life Microsoft VC .NET 3 23rd Jul 2007 04:16 AM
call managed/unmanaged classes from unmanaged code bonk Microsoft VC .NET 1 1st Oct 2005 04:10 PM
Mixing Mananged and Unmanaged in an Unmanaged class Jon Microsoft VC .NET 18 7th Jun 2004 04:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:02 AM.