Talk:Class Explorer (C++)

From RAD Studio
Jump to: navigation, search

Given recent compiler progress, "Generate Reference Information" will be ON by default. Babetb


"Show pure abstract functions as Interfaces 
If all functions in a class are pure abstract, the class is represented as an Interface in the Class Explorer. Otherwise, it is represented as a class"

Minor tweak:

It should be "Show pure abstract classes as Interfaces". "If all functions in a class or struct are pure virtual and the class or struct contains no data member, .... . Otherwise, it is represented as a class or struct". Babetb.


Interfaces must derive from IUnknown 
If all functions in a class derive from IUnknown, the class is represented as an Interface in the Class Explorer. Otherwise, it is represented as a class. 

This only kicks in if "Show pure abstract classes as Interfaces" is ON. It says "in addition to the requirement that a class contain only pure virtual methods to be shown as an interface... make sure that it derives from IUnknown too". This is useful to ActiveX/COM users where interfaces derive from IUnknown. Babetb


Thanks, Bruneau - I've incorporated your comments! - Kris



I realize the train has left the station but I have to confess that I has to pull otu the "Search Hidden Declarations" options today because I can pull it off. I'll send an email also and, yes, if it's too late I'll let our users know that I messed up on that one. My apologies. Babetb

DONE

KrisHouser 15:27, 2 March 2010 (PST)