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

Managed C++/CLI

 
GeneralUnmanaged code to call managed code Pin
onyxbird10-Apr-03 9:43
onyxbird10-Apr-03 9:43 
GeneralRe: Unmanaged code to call managed code Pin
Paul Selormey10-Apr-03 18:03
Paul Selormey10-Apr-03 18:03 
GeneralC2682: cannot use __try_cast to convert from 'gcroot<T>' Pin
Paul Selormey31-Mar-03 20:40
Paul Selormey31-Mar-03 20:40 
GeneralRe: C2682: cannot use __try_cast to convert from 'gcroot<T>' Pin
Paul Selormey1-Apr-03 0:51
Paul Selormey1-Apr-03 0:51 
GeneralMixing ATL and MC++ Pin
Heath Stewart26-Mar-03 3:17
protectorHeath Stewart26-Mar-03 3:17 
GeneralRe: Mixing ATL and MC++ Pin
Paul Selormey26-Mar-03 13:29
Paul Selormey26-Mar-03 13:29 
GeneralCovariant return types Pin
VizOne24-Mar-03 22:52
VizOne24-Mar-03 22:52 
GeneralRe: Covariant return types Pin
Paul Selormey26-Mar-03 0:41
Paul Selormey26-Mar-03 0:41 
Hello Andre,
I am not currently on my .NET machine to investigate your case. However, all my collections for a product, we are about to release, does just that without any problem. I use VS.NET 2003 (but I do not think it is the issue).

To prove the point, here is a code I have copied for a real .NET component.
////////////////////////////////////////////////////////////////////////////
// The System::Collections collection interface implementations

public:
	__property MapTheme* get_Item(int index)
	{
		return __try_cast<MapTheme*>(List->Item[index]);
	}

	__property void set_Item(int index, MapTheme* value)
	{
		List->Item[index] = value;
	}

So the problem may not be the issue of "Covariant return types". Do you have implementation for the set_Item property too? Also, your code seems to make the get_Item property private, is that what the actual code you compiled is?

Best regards,
Paul.


Jesus Christ is LOVE! Please tell somebody.
GeneralRe: Covariant return types Pin
VizOne26-Mar-03 0:53
VizOne26-Mar-03 0:53 
GeneralRe: Covariant return types Pin
Paul Selormey26-Mar-03 1:12
Paul Selormey26-Mar-03 1:12 
GeneralRe: Covariant return types Pin
VizOne26-Mar-03 8:35
VizOne26-Mar-03 8:35 
GeneralRe: Covariant return types Pin
Paul Selormey26-Mar-03 13:22
Paul Selormey26-Mar-03 13:22 
GeneralRe: Covariant return types Pin
Daniel Turini14-Apr-03 0:52
Daniel Turini14-Apr-03 0:52 
GeneralRe: Covariant return types Pin
Paul Selormey26-Mar-03 19:05
Paul Selormey26-Mar-03 19:05 
GeneralSocket function error Pin
TeraCoder24-Mar-03 14:23
TeraCoder24-Mar-03 14:23 
GeneralRe: Socket function error Pin
Paul Selormey24-Mar-03 17:33
Paul Selormey24-Mar-03 17:33 
GeneralForm within Form ... Pin
Maximilien21-Mar-03 11:59
Maximilien21-Mar-03 11:59 
GeneralRe: Form within Form ... Pin
Paul Selormey24-Mar-03 17:30
Paul Selormey24-Mar-03 17:30 
GeneralDisplaying a dialog from a DLL Pin
Squatch618-Mar-03 17:04
Squatch618-Mar-03 17:04 
GeneralRe: Displaying a dialog from a DLL Pin
Paul Selormey18-Mar-03 18:21
Paul Selormey18-Mar-03 18:21 
GeneralRe: Displaying a dialog from a DLL Pin
John R. Shaw29-Apr-03 19:13
John R. Shaw29-Apr-03 19:13 
GeneralManaged and Unmanaged Pin
Nicholas Naddaf18-Mar-03 7:32
Nicholas Naddaf18-Mar-03 7:32 
GeneralRe: Managed and Unmanaged Pin
Nish Nishant18-Mar-03 7:36
sitebuilderNish Nishant18-Mar-03 7:36 
GeneralRe: Managed and Unmanaged Pin
Nicholas Naddaf18-Mar-03 7:56
Nicholas Naddaf18-Mar-03 7:56 
GeneralRe: Managed and Unmanaged Pin
Nish Nishant18-Mar-03 8:00
sitebuilderNish Nishant18-Mar-03 8:00 

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.