Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: custom control problem Pin
Roger Allen22-Apr-03 6:14
Roger Allen22-Apr-03 6:14 
My guess is that it can load the template fine when the propety sheet is being created, but it is failing to load the custom control info when it creating the CPropertyPage object and initialising the controls.

It may be necessary for you to make sure that the correct resources are selected at the time the OnInitDialog()/OnInitialUpdate() for the CPropertyPage is called. So you would need to do:

OnInitDialog/OnInitialUpdtate()
{
HINSTANCE old = AfxGetResourceHandle();
AfxSetRexourceHandle(hInstanceOfDll);
//call base class
CPropertyPage::OnInitDialog()/OnInitialUpdate();
AfxSetResourceHandle(old);
...
}


This is caused by your DLL being dynamically loaded and not being added to the MFC DLL resource chain.


Roger Allen
Sonork 100.10016

Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
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 
GeneralRe: Question about Int64. Pin
George222-Apr-03 19:43
George222-Apr-03 19:43 

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.