Click here to Skip to main content
15,886,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Registry Problems Pin
David Crow22-Apr-03 6:18
David Crow22-Apr-03 6:18 
GeneralRe: Registry Problems Pin
Coyotedw22-Apr-03 7:18
Coyotedw22-Apr-03 7:18 
GeneralRe: Registry Problems Pin
John R. Shaw22-Apr-03 16:24
John R. Shaw22-Apr-03 16:24 
GeneralRe: Registry Problems Pin
Joe Woodbury22-Apr-03 8:47
professionalJoe Woodbury22-Apr-03 8:47 
Generalhandling accelerator Pin
Rage22-Apr-03 5:24
professionalRage22-Apr-03 5:24 
GeneralRe: handling accelerator Pin
eXplodus22-Apr-03 8:05
eXplodus22-Apr-03 8:05 
GeneralRe: handling accelerator Pin
Anonymous22-Apr-03 20:59
Anonymous22-Apr-03 20:59 
Generalcustom control problem Pin
Lior Shoval22-Apr-03 5:08
Lior Shoval22-Apr-03 5:08 
Hi.
I have a problem which relates to custom control. let me try to describe it:

description of dll1:
holds CMyPropertySheet and CMyPropertyPage (customized deriviations from MFC)
holds CPropertySheetMediator which is a singleton and is incharg of creating the CPropertySheet and adding the property pages to it.

description of dll2:
hold CGenPropertyPage which derives from CMyPropertyPage and holds a member of MyCustomControl which is the old thing this property page displays

description of dll3:
this is (like the first two) mfc extension dll which is dynamiclly linked to mfc (not statically) and is a dynamic library (not static .lib file)
the custom control calls RegisterClass in it's constructor to register it's window class.

description of application:
the application calls a method of CPropertySheetMediator to create an instance of CMyPropertySheet which contains only one page, CGenPropertyPage
then the application calls DoModal on that propertysheet instance it get's back from the mediator.
for some odd reason, DoModal fails (tracing into mfc code reveals that do WM_INITDIALOG message is sent to the propertysheet but is not received by it)
At the begining i thought it was a resources problem, but it isn't. If i remove the custom control place holder from CGenPropertyPage, the sheet is displayed and runs without a problem, so i figured it has something to do with the window class registration.
ofcourse i should mention that if CGenPropertyPage resides in the application and not in dll2 everything works just fine.
Any ideas ?

Thanks.
GeneralRe: custom control problem Pin
Roger Allen22-Apr-03 6:14
Roger Allen22-Apr-03 6:14 
GeneralRe: custom control problem Pin
Lior Shoval22-Apr-03 8:25
Lior Shoval22-Apr-03 8:25 
GeneralRe: custom control problem Pin
Roger Allen23-Apr-03 1:46
Roger Allen23-Apr-03 1:46 
Generalsaving a CListCtrl as a file Pin
si_6922-Apr-03 4:43
si_6922-Apr-03 4:43 
GeneralRe: saving a CListCtrl as a file Pin
Rage22-Apr-03 5:07
professionalRage22-Apr-03 5:07 
GeneralGet Ctrl Data out of SubForm Dialog to Main Dialog Pin
triggerdie22-Apr-03 4:37
triggerdie22-Apr-03 4:37 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
Rage22-Apr-03 5:35
professionalRage22-Apr-03 5:35 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
triggerdie22-Apr-03 22:02
triggerdie22-Apr-03 22:02 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
Rage22-Apr-03 23:07
professionalRage22-Apr-03 23:07 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
Rage23-Apr-03 23:10
professionalRage23-Apr-03 23:10 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
eXplodus22-Apr-03 8:10
eXplodus22-Apr-03 8:10 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
Joan M22-Apr-03 21:35
professionalJoan M22-Apr-03 21:35 
GeneralRe: Get Ctrl Data out of SubForm Dialog to Main Dialog Pin
triggerdie22-Apr-03 22:21
triggerdie22-Apr-03 22:21 
GeneralQuestion about Int64. Pin
George222-Apr-03 4:26
George222-Apr-03 4:26 
GeneralRe: Question about Int64. Pin
Tim Smith22-Apr-03 4:40
Tim Smith22-Apr-03 4:40 
GeneralRe: Question about Int64. Pin
George222-Apr-03 16:26
George222-Apr-03 16:26 
GeneralRe: Question about Int64. Pin
John R. Shaw22-Apr-03 16:42
John R. Shaw22-Apr-03 16:42 

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.