Click here to Skip to main content
15,893,668 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Managed C++ Running Delay Pin
eddstar12-Aug-04 12:18
eddstar12-Aug-04 12:18 
GeneralUsing VC++ Express compiler in Visual Studio 6 IDE Pin
adrian cooper5-Aug-04 2:09
adrian cooper5-Aug-04 2:09 
GeneralDiffrence between VC++ and managed Pin
X20404-Aug-04 12:24
X20404-Aug-04 12:24 
GeneralRe: Diffrence between VC++ and managed Pin
Anders Molin4-Aug-04 12:45
professionalAnders Molin4-Aug-04 12:45 
GeneralRe: Diffrence between VC++ and managed Pin
John M. Drescher4-Aug-04 12:46
John M. Drescher4-Aug-04 12:46 
GeneralRe: Diffrence between VC++ and managed Pin
Bo Hunter5-Aug-04 12:43
Bo Hunter5-Aug-04 12:43 
GeneralRe: Diffrence between VC++ and managed Pin
John M. Drescher6-Aug-04 4:45
John M. Drescher6-Aug-04 4:45 
QuestionHow to wrap an Unmanaged COM Object in Managed C++ Pin
johnbMA3-Aug-04 14:44
johnbMA3-Aug-04 14:44 
I'm trying to figure out how to wrap an existing (Unmanaged C++) COM Object in Managed C++ for use in .Net.

I've seen several examples both here in Code Project in MSDN. The examples I've seen so far aren't exactly the solution I've been looking for.

1) Wrap the underlying C++ Object in managed C++ and do away with COM entirely (this will probably give the best performance). This is unacceptable to the client, as they want to maintain the COM interface going forward

2) COM Interop via Managed C++, using TlbImp to import the type library from an unmanaged COM object, then including the generated METADATA inside the the client, and calling the desired interfaces.

We've already taking a crack at this, by generating the original definitons in a CLR assembly, thenediting the intermediate code/stubs to try to fix up any marshalling issues. We found our data types weren't totally compliant with automation (too complex/nested). It would require a lot of trial and error tricky editing in order to get this approach to work (if we could get it to work 100% at all).

3) Rewrite the COM Object in C#. This approach would be resource and cost prohibitive.

So the approach, we would like to take is to write a .NET wrapper, using Managed C++ on top of the COM Object. I've spent a fair amount of time searching the web and other resources for information regarding this approach. I've seen several articles referring to it, but as of yet I have not seen any (simplified) concrete examples of how to go about implementing this solution.

Is there anyone out there who is familiar with this?

A small/simple code example would get me well on the way.

Thanks in advance for your help,
JohnB


AnswerExcellent Question Pin
ursus zeta9-Aug-04 12:33
ursus zeta9-Aug-04 12:33 
QuestionHow to make the system beep Pin
eddstar2-Aug-04 10:38
eddstar2-Aug-04 10:38 
AnswerRe: How to make the system beep Pin
Anonymous12-Aug-04 11:20
Anonymous12-Aug-04 11:20 
GeneralC++/CLI Array problem Pin
Brian Olej1-Aug-04 7:25
Brian Olej1-Aug-04 7:25 
GeneralRe: C++/CLI Array problem Pin
palbano2-Aug-04 6:35
palbano2-Aug-04 6:35 
GeneralRe: C++/CLI Array problem Pin
Brian Olej2-Aug-04 7:14
Brian Olej2-Aug-04 7:14 
GeneralRe: C++/CLI Array problem Pin
palbano2-Aug-04 7:54
palbano2-Aug-04 7:54 
GeneralRe: C++/CLI Array problem Pin
Bo Hunter2-Aug-04 14:18
Bo Hunter2-Aug-04 14:18 
GeneralRe: C++/CLI Array problem Pin
Brian Olej2-Aug-04 18:05
Brian Olej2-Aug-04 18:05 
GeneralRe: C++/CLI Array problem Pin
cppmanuf3-Aug-04 19:18
cppmanuf3-Aug-04 19:18 
GeneralRe: C++/CLI Array problem Pin
Brian Olej4-Aug-04 2:49
Brian Olej4-Aug-04 2:49 
GeneralRe: C++/CLI Array problem Pin
Bo Hunter5-Aug-04 12:40
Bo Hunter5-Aug-04 12:40 
GeneralReparing Access database Pin
Member 69261831-Jul-04 20:46
Member 69261831-Jul-04 20:46 
GeneralRe: Reparing Access database Pin
palbano2-Aug-04 6:28
palbano2-Aug-04 6:28 
GeneralC++ vs Managed Pin
---Mark---30-Jul-04 10:39
---Mark---30-Jul-04 10:39 
GeneralRe: C++ vs Managed Pin
palbano31-Jul-04 19:02
palbano31-Jul-04 19:02 
Generalassign mfc handle to dotnet form Pin
luke0530-Jul-04 1:36
luke0530-Jul-04 1:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.