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

Managed C++/CLI

 
GeneralRe: Class Reference Variables in Managed C++? Using the Activator Class,,, Pin
Michael Dunn7-Oct-06 7:21
sitebuilderMichael Dunn7-Oct-06 7:21 
GeneralRe: Class Reference Variables in Managed C++? Using the Activator Class,,, Pin
mike montagne10-Oct-06 9:04
mike montagne10-Oct-06 9:04 
GeneralRe: Class Reference Variables in Managed C++? Using the Activator Class... Pin
mike montagne10-Oct-06 9:08
mike montagne10-Oct-06 9:08 
GeneralRe: Class Reference Variables in Managed C++? Using the Activator Class,,, Pin
User 5838522-Oct-06 17:41
User 5838522-Oct-06 17:41 
GeneralRe: Class Reference Variables - Building Template Pin
mike montagne5-Oct-06 9:30
mike montagne5-Oct-06 9:30 
GeneralRe: Class Reference Variables - Building Template Pin
User 5838525-Oct-06 12:48
User 5838525-Oct-06 12:48 
GeneralRe: Class Reference Variables - Building Template Pin
mike montagne5-Oct-06 13:20
mike montagne5-Oct-06 13:20 
QuestionExplicit override of a property and Generic::IEnumeration Pin
User 58385227-Sep-06 20:43
User 58385227-Sep-06 20:43 
I have a class that implements System::Collections::Generic::IEnumerable<> interface. System::Collections::Generic::IEnumerable<> is derived from System::Collections::IEnumerable and both have a pure virtual method called GetEnumerator() but with different return types.

To over come the "overloaded function differs only by return type" error I used an 'explicit override' as described in the documentation. The code looks like this....

virtual System::Collections::Generic::IEnumerator<OptiverAu::VaultDotNet::TradeDelta^>^ GetEnumerator()
{
//to be implemented
return nullptr;
}

//note the '= blah blah' (this is the expicit override)
virtual System::Collections::IEnumerator ^ GetEnumeratorNG() sealed = System::Collections::IEnumerable::GetEnumerator
{
return GetEnumerator();
}

Seems a wierd way of doing things but it works. Now I want to write a class that implements the System::Collections::Generic::IEnumerator<> generic interface to be returned from the GetEnumerator() function above

System::Collections::Generic::IEnumerator is derived from System::Collections::IEnumerator in the same way as the example above. Both have a 'pure virtual' property called Current but with different return types.

What is the syntax for an explicit override of a property? I have spent an entire day searching and cant find the answer anywhere.
AnswerRe: Explicit override of a property and Generic::IEnumeration Pin
George L. Jackson28-Sep-06 16:45
George L. Jackson28-Sep-06 16:45 
GeneralRe: Explicit override of a property and Generic::IEnumeration Pin
User 58385228-Sep-06 18:40
User 58385228-Sep-06 18:40 
QuestionCoGetInterfaceAndReleaseStream() in managed VC++.NET 2003 Pin
lafleon27-Sep-06 8:45
lafleon27-Sep-06 8:45 
QuestionPlease determine the output Pin
Sushant Duggal27-Sep-06 0:58
Sushant Duggal27-Sep-06 0:58 
AnswerRe: Please determine the output Pin
led mike27-Sep-06 8:11
led mike27-Sep-06 8:11 
AnswerRe: Please determine the output Pin
Christian Graus27-Sep-06 12:45
protectorChristian Graus27-Sep-06 12:45 
GeneralRe: Please determine the output Pin
Sushant Duggal27-Sep-06 17:59
Sushant Duggal27-Sep-06 17:59 
GeneralRe: Please determine the output Pin
Christian Graus27-Sep-06 18:06
protectorChristian Graus27-Sep-06 18:06 
GeneralRe: Please determine the output Pin
Sushant Duggal27-Sep-06 18:31
Sushant Duggal27-Sep-06 18:31 
GeneralRe: Please determine the output Pin
Sushant Duggal27-Sep-06 18:47
Sushant Duggal27-Sep-06 18:47 
GeneralRe: Please determine the output Pin
Christian Graus27-Sep-06 19:00
protectorChristian Graus27-Sep-06 19:00 
AnswerRe: Please determine the output Pin
Christian Graus27-Sep-06 19:12
protectorChristian Graus27-Sep-06 19:12 
GeneralRe: Please determine the output Pin
Sushant Duggal27-Sep-06 19:38
Sushant Duggal27-Sep-06 19:38 
GeneralRe: Please determine the output Pin
Christian Graus27-Sep-06 19:45
protectorChristian Graus27-Sep-06 19:45 
QuestionRe: Please determine the output [modified] Pin
Sushant Duggal27-Sep-06 21:03
Sushant Duggal27-Sep-06 21:03 
AnswerRe: Please determine the output Pin
Nish Nishant28-Sep-06 5:57
sitebuilderNish Nishant28-Sep-06 5:57 
QuestionProblem in using CList Pin
GudduRanchi26-Sep-06 23:48
GudduRanchi26-Sep-06 23:48 

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.