Click here to Skip to main content
16,011,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDLL Question Pin
Stan the man29-Oct-02 20:37
Stan the man29-Oct-02 20:37 
GeneralRe: DLL Question Pin
Joaquín M López Muñoz29-Oct-02 21:11
Joaquín M López Muñoz29-Oct-02 21:11 
GeneralRe: DLL Question Pin
Stan the man29-Oct-02 21:59
Stan the man29-Oct-02 21:59 
GeneralRe: DLL Question Pin
Joaquín M López Muñoz29-Oct-02 23:08
Joaquín M López Muñoz29-Oct-02 23:08 
GeneralRe: DLL Question Pin
KarstenK30-Oct-02 1:49
mveKarstenK30-Oct-02 1:49 
GeneralRe: DLL Question Pin
Stan the man30-Oct-02 2:10
Stan the man30-Oct-02 2:10 
Generalinheritance steps... (property sheet and pages) Pin
Joan M29-Oct-02 20:26
professionalJoan M29-Oct-02 20:26 
GeneralRe: inheritance steps... (property sheet and pages) Pin
jhwurmbach29-Oct-02 21:16
jhwurmbach29-Oct-02 21:16 
Joan Murt wrote:
RELATED QUESTIONS:
- Why do I need to change the contructors...


You want to call the base class constructor at the construction of the page. This way, every class in the hierarchy gets its turn to look at the parameters involved. Only Heaven (and maybe the programmer) knows what information it needs from the parameters, but fact is that CPSAutoRedimensionable in turn will have to call the ctor of CPropertySheet with these parameters.

Joan Murt wrote:
what happens to the dialog resource that's asked in the creation of the new class?

EveryPage has something like
enum { IDD = IDD_PROPPAGE_ASSAY };
in its header file. In the code file IID is handed over to the CPropertyPage ctor, which in turn loads the resource.

Joan Murt wrote:
In VC++6 when you make a new class that's a CPropertyPage, you must tell which dialog resource will it use...
If I don't know which I will use, what do I have to type there?


Normaly, I work the other way round: I create a page with the resource editor and after it looks like my design, I let the code wizard produce a class for it. The resource can be freely modified afterwards, but the connection to the class remains (via the resource name in the enum-statment above).
GeneralRe: inheritance steps... (property sheet and pages) Pin
Joaquín M López Muñoz29-Oct-02 21:22
Joaquín M López Muñoz29-Oct-02 21:22 
GeneralExtension Dlls Pin
Furrukh Azam29-Oct-02 19:59
sussFurrukh Azam29-Oct-02 19:59 
GeneralRe: Extension Dlls Pin
Pavel Klocek29-Oct-02 21:07
Pavel Klocek29-Oct-02 21:07 
GeneralRe: Extension Dlls Pin
Trollslayer30-Oct-02 1:43
mentorTrollslayer30-Oct-02 1:43 
Questionrealloc assumption...? Pin
alex.barylski29-Oct-02 19:42
alex.barylski29-Oct-02 19:42 
AnswerRe: realloc assumption...? Pin
Stephane Rodriguez.29-Oct-02 20:14
Stephane Rodriguez.29-Oct-02 20:14 
GeneralRe: realloc assumption...? Pin
alex.barylski30-Oct-02 9:30
alex.barylski30-Oct-02 9:30 
GeneralRe: realloc assumption...? Pin
Stephane Rodriguez.30-Oct-02 9:42
Stephane Rodriguez.30-Oct-02 9:42 
GeneralSpy ++++ Pin
Shamoon29-Oct-02 19:23
Shamoon29-Oct-02 19:23 
GeneralRe: Spy ++++ Pin
dabs29-Oct-02 20:09
dabs29-Oct-02 20:09 
GeneralRe: Spy ++++ Pin
567890123430-Oct-02 2:32
567890123430-Oct-02 2:32 
GeneralClass in Dll Pin
stevenson29-Oct-02 19:16
stevenson29-Oct-02 19:16 
GeneralRe: Class in Dll Pin
Bugra Barin29-Oct-02 20:06
Bugra Barin29-Oct-02 20:06 
GeneralRe: Class in Dll Pin
Bugra Barin29-Oct-02 20:08
Bugra Barin29-Oct-02 20:08 
GeneralFirst error for the night.... Pin
Nick Parker29-Oct-02 17:06
protectorNick Parker29-Oct-02 17:06 
GeneralRe: First error for the night.... Pin
Anatari29-Oct-02 17:28
Anatari29-Oct-02 17:28 
GeneralRe: First error for the night.... Pin
Nick Parker29-Oct-02 17:39
protectorNick Parker29-Oct-02 17:39 

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.