Click here to Skip to main content
15,900,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Checkbox? Pin
David Crow8-Jan-07 8:27
David Crow8-Jan-07 8:27 
AnswerRe: Checkbox? Pin
Larsson8-Jan-07 8:53
Larsson8-Jan-07 8:53 
GeneralRe: Checkbox? Pin
David Crow8-Jan-07 9:01
David Crow8-Jan-07 9:01 
AnswerRe: Checkbox? Pin
PJ Arends8-Jan-07 8:31
professionalPJ Arends8-Jan-07 8:31 
GeneralRe: Checkbox? Pin
Larsson8-Jan-07 8:55
Larsson8-Jan-07 8:55 
AnswerRe: Checkbox? Pin
Stephen Hewitt8-Jan-07 11:32
Stephen Hewitt8-Jan-07 11:32 
GeneralRe: Checkbox? Pin
Larsson8-Jan-07 12:51
Larsson8-Jan-07 12:51 
QuestionAFX_MANAGE_STATE(AfxGetStaticModuleState()); Pin
Niklas L8-Jan-07 7:40
Niklas L8-Jan-07 7:40 
Hi
I have a dll with exported functions, which I protect with AFX_MANAGE_STATE(AfxGetStaticModuleState()). Fine. Now, to those functions I send a callback function as a param. This callback function is in the exe. Is there a corresponding way to restore the module state when I get back into the exe, or do I need to roll up my sleves for this one?

It's a requirement that the writer of the dll shouldn't be bothered with restoring the state before calling the callbacks, but just setting his own state correctly using the AFX_MANAGE_STATE macro.

tia
Niklas


AnswerRe: AFX_MANAGE_STATE(AfxGetStaticModuleState()); Pin
Mark Salsbery8-Jan-07 8:37
Mark Salsbery8-Jan-07 8:37 
GeneralRe: AFX_MANAGE_STATE(AfxGetStaticModuleState()); Pin
Niklas L8-Jan-07 8:52
Niklas L8-Jan-07 8:52 
GeneralRe: AFX_MANAGE_STATE(AfxGetStaticModuleState()); Pin
Mark Salsbery8-Jan-07 9:02
Mark Salsbery8-Jan-07 9:02 
GeneralRe: AFX_MANAGE_STATE(AfxGetStaticModuleState()); Pin
Niklas L8-Jan-07 10:34
Niklas L8-Jan-07 10:34 
GeneralRe: AFX_MANAGE_STATE(AfxGetStaticModuleState()); Pin
Niklas L8-Jan-07 10:56
Niklas L8-Jan-07 10:56 
GeneralRe: AFX_MANAGE_STATE(AfxGetStaticModuleState()); Pin
Mark Salsbery8-Jan-07 11:08
Mark Salsbery8-Jan-07 11:08 
QuestionImpossible to start specified application... Pin
ayol121228-Jan-07 6:34
ayol121228-Jan-07 6:34 
AnswerRe: Impossible to start specified application... [modified] Pin
Mark Salsbery8-Jan-07 7:10
Mark Salsbery8-Jan-07 7:10 
GeneralRe: Impossible to start specified application... Pin
ayol121228-Jan-07 10:35
ayol121228-Jan-07 10:35 
QuestionCan't Create New Class with Wizard Pin
Reagan Conservative8-Jan-07 6:33
Reagan Conservative8-Jan-07 6:33 
AnswerRe: Can't Create New Class with Wizard Pin
Trollslayer8-Jan-07 6:35
mentorTrollslayer8-Jan-07 6:35 
GeneralRe: Can't Create New Class with Wizard Pin
Reagan Conservative8-Jan-07 6:43
Reagan Conservative8-Jan-07 6:43 
QuestionTerminate application during creation Pin
baerten8-Jan-07 5:01
baerten8-Jan-07 5:01 
AnswerRe: Terminate application during creation Pin
David Crow8-Jan-07 5:04
David Crow8-Jan-07 5:04 
AnswerRe: Terminate application during creation Pin
jhwurmbach8-Jan-07 5:38
jhwurmbach8-Jan-07 5:38 
AnswerThanks Pin
baerten9-Jan-07 21:35
baerten9-Jan-07 21:35 
QuestionADO cannot restore connection Pin
Daniel Kanev8-Jan-07 4:47
Daniel Kanev8-Jan-07 4: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.