Click here to Skip to main content
16,007,885 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
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 
GeneralRe: Covariant return types Pin
VizOne26-Mar-03 0:53
VizOne26-Mar-03 0:53 
Hi Paul

Just to give you an example:
<br />
public __gc class MyData { /**/ };<br />
<br />
public __gc class MyCollection<br />
: public CollectionBase<br />
{<br />
public:<br />
    __property MyData * get_Item(int in_index)<br />
    {<br />
        return static_cast<MyData*>(List->Item[in_index]);<br />
    }<br />
<br />
    __property void set_Item(int in_index, MyData * in_data)<br />
    {<br />
        List->Item[in_index] = in_data;<br />
    }<br />
};<br />


The (German) output is:
<br />
Covariant4.cpp(19) : error C3815: Der Rückgabetyp der Methode 'MyCollection::get_Item' muss mit dem Typ des letzten Parameters von 'System::Collections::IList::set_Item' übereinstimmen<br />
        Covariant4.cpp(18) : Siehe Deklaration von 'MyCollection::get_Item'<br />
        Covariant4.cpp(6) : Siehe Deklaration von 'System::Collections::IList::set_Item'<br />
Covariant4.cpp(19) : error C2392: 'MyData __gc *MyCollection::get_Item(int)' : Covariant-Rückgabetypen werden in verwalteten Typen nicht unterstützt<br />

Translated:
C3815: Return value of 'MyCollection::get_Item' must match the type of the last parameter of 'System::Collections::IList::set_Item'
C2392: 'MyData __gc *MyCollection::get_Item(int)': Covariant return types are not supported in managed types

It seems to me as if this has been fixed in vs2003. Damn, I'm looking forward to it Smile | :)

- Andre
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 
GeneralRe: Managed and Unmanaged Pin
Nicholas Naddaf18-Mar-03 8:05
Nicholas Naddaf18-Mar-03 8:05 

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.