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

Managed C++/CLI

 
AnswerRe: What is the meaning of Managed C++.. Pin
toxcct24-Jan-06 21:50
toxcct24-Jan-06 21:50 
AnswerRe: What is the meaning of Managed C++.. Pin
George L. Jackson3-Feb-06 8:00
George L. Jackson3-Feb-06 8:00 
Questionhey guys how do u load ..... Pin
abstarsss24-Jan-06 19:36
abstarsss24-Jan-06 19:36 
QuestionCan C++ be used to creat a powerful web app? Pin
larryfran24-Jan-06 19:18
larryfran24-Jan-06 19:18 
AnswerRe: Can C++ be used to creat a powerful web app? Pin
toxcct24-Jan-06 21:53
toxcct24-Jan-06 21:53 
AnswerRe: Can C++ be used to creat a powerful web app? Pin
George L. Jackson3-Feb-06 8:09
George L. Jackson3-Feb-06 8:09 
QuestionGet full pa Pin
Arumugarani Sundaram24-Jan-06 18:08
Arumugarani Sundaram24-Jan-06 18:08 
Questionpassing a managed structure to an unmanaged virtual function... Pin
chervu24-Jan-06 7:14
chervu24-Jan-06 7:14 
Hello,

I was able to call native overridden virtual function (with no parameters) using polymorphism between Managed and Native C++ via a native DLL (compiled by VC6 compiler). I tried to extend this sample by adding one managed parameter of type structure to the native virtual function. VC6 compiler compiled the sources and generated lib/dll for the new changes successfully.

class ADPCBIJW_API AdpCBBase
{
public:
AdpCBBase(){}
//virtual void notify(gcroot<startsqnotiinfo *=""> apInfo)=0;
virtual void notify(StartSQNotiInfo * apInfo)=0;
virtual void notify()=0;

};

However, I noticed below compilation error while trying to compile MC++ client using the native header with the above declaration:

error C3383: 'AdpCBBase::notify' : in an unmanaged class, a virtual member function cannot have a managed type in the signature

I read the explanation for this in MSDN. And found some articles on google stating this feature is prohibited due to performance overheads with the involved transistions from managed-native-managed. But do you know any alternative to get around this problem?

One alternative may be by using gcroot template around the managed type in the native function. This might work with VC7 compiler to generate lib/dll when compiled with CLR option. But how can this work with VC6 compiler for it unaware of gcroot, vcclr.h, mscorlib.dll and /clr option?

How to make this work between VC6 compiler and MC++ compiler?

ps:- Another question, Does gcroot support pointer to a managed structure also?

Thank you & Best Regards,



-- modified at 13:27 Tuesday 24th January, 2006
Question__gc struct array with string array fields Pin
Tammo_24-Jan-06 5:38
Tammo_24-Jan-06 5:38 
Question__gc* equivalent in VC++ 2005 Pin
madhusri24-Jan-06 4:43
madhusri24-Jan-06 4:43 
AnswerRe: __gc* equivalent in VC++ 2005 Pin
Nish Nishant24-Jan-06 5:45
sitebuilderNish Nishant24-Jan-06 5:45 
GeneralRe: __gc* equivalent in VC++ 2005 Pin
madhusri24-Jan-06 18:09
madhusri24-Jan-06 18:09 
GeneralRe: __gc* equivalent in VC++ 2005 Pin
Nish Nishant25-Jan-06 1:35
sitebuilderNish Nishant25-Jan-06 1:35 
GeneralRe: __gc* equivalent in VC++ 2005 Pin
madhusri26-Jan-06 21:54
madhusri26-Jan-06 21:54 
GeneralRe: __gc* equivalent in VC++ 2005 Pin
Sriinii27-Jan-06 0:49
Sriinii27-Jan-06 0:49 
GeneralRe: __gc* equivalent in VC++ 2005 Pin
Nish Nishant28-Jan-06 2:22
sitebuilderNish Nishant28-Jan-06 2:22 
GeneralRe: __gc* equivalent in VC++ 2005 Pin
George L. Jackson3-Feb-06 8:55
George L. Jackson3-Feb-06 8:55 
GeneralRe: __gc* equivalent in VC++ 2005 Pin
engsrini3-Feb-06 19:36
engsrini3-Feb-06 19:36 
QuestionShare permissions Pin
kelprinc23-Jan-06 21:10
kelprinc23-Jan-06 21:10 
QuestionConvert Binary File to Text File in C++ Pin
PremalathaP23-Jan-06 19:12
PremalathaP23-Jan-06 19:12 
AnswerRe: Convert Binary File to Text File in C++ Pin
Cedric Moonen23-Jan-06 20:54
Cedric Moonen23-Jan-06 20:54 
AnswerRe: Convert Binary File to Text File in C++ Pin
gecool30-Jan-06 23:44
gecool30-Jan-06 23:44 
Questionsome help with a simple project Pin
vertig073023-Jan-06 6:16
vertig073023-Jan-06 6:16 
QuestionSet default namespace Pin
Ariston Darmayuda23-Jan-06 3:58
Ariston Darmayuda23-Jan-06 3:58 
AnswerRe: Set default namespace Pin
Michael Dunn23-Jan-06 7:40
sitebuilderMichael Dunn23-Jan-06 7:40 

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.