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

Managed C++/CLI

 
AnswerRe: Class Reference Variables in Managed C++? Pin
User 58385228-Sep-06 18:50
User 58385228-Sep-06 18:50 
GeneralRe: Class Reference Variables in Managed C++? Using the Activator Class,,, Pin
mike montagne28-Sep-06 20:12
mike montagne28-Sep-06 20:12 
GeneralRe: Class Reference Variables in Managed C++? Using the Activator Class,,, Pin
User 58385228-Sep-06 20:43
User 58385228-Sep-06 20:43 
GeneralRe: Class Reference Variables in Managed C++? THANKS Pin
mike montagne29-Sep-06 6:09
mike montagne29-Sep-06 6:09 
GeneralRe: Class Reference Variables in Managed C++? Using the Activator Class,,, Pin
mike montagne29-Sep-06 7:33
mike montagne29-Sep-06 7:33 
GeneralRe: Class Reference Variables in Managed C++? Using the Activator Class,,, Pin
led mike29-Sep-06 7:55
led mike29-Sep-06 7:55 
GeneralRe: Class Reference Variables in Managed C++? Using the Activator Class,,, [modified] Pin
mike montagne29-Sep-06 9:29
mike montagne29-Sep-06 9:29 
GeneralRe: Class Reference Variables in Managed C++? Using the Activator Class,,, Pin
Michael Dunn7-Oct-06 7:21
sitebuilderMichael Dunn7-Oct-06 7:21 
mmontagne wrote:
When you assign the class identifier (name) of a derived class to a class reference and pass the class reference to a factory method, it calls the constructor of the derived class and constructs an instance of the derived class which does not have to be cast.


That sounds like you're asking for a "virtual constuctor", which does not exist in C++. The types of objects being constructed have to be known at compile time. Google for "virtual constuctor" and you'll see some ways of hand-rolling this.


--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

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 
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 

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.