Click here to Skip to main content
15,915,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDebug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
panzerdivisionmarkus16-May-08 4:01
panzerdivisionmarkus16-May-08 4:01 
AnswerRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
Gary R. Wheeler17-May-08 1:09
Gary R. Wheeler17-May-08 1:09 
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
panzerdivisionmarkus18-May-08 21:35
panzerdivisionmarkus18-May-08 21:35 
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
Gary R. Wheeler19-May-08 0:12
Gary R. Wheeler19-May-08 0:12 
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
panzerdivisionmarkus19-May-08 23:30
panzerdivisionmarkus19-May-08 23:30 
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
Gary R. Wheeler20-May-08 0:07
Gary R. Wheeler20-May-08 0:07 
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
panzerdivisionmarkus20-May-08 0:57
panzerdivisionmarkus20-May-08 0:57 
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
panzerdivisionmarkus20-May-08 1:14
panzerdivisionmarkus20-May-08 1:14 
finally found something.
Seems like this code is causing the assertion:
_AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle()
	{ ASSERT(afxCurrentResourceHandle != NULL);
		return afxCurrentResourceHandle; }

Seems like afxCurrentResourceHandle haven't been properly set. I thought that was what AFX_MANAGE_STATE(AfxGetStaticModuleState()) was doing. You wouldn't happen to know any reason why it would fail?
GeneralRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
Gary R. Wheeler20-May-08 11:44
Gary R. Wheeler20-May-08 11:44 
AnswerRe: Debug assertion when using AFX_MANAGE_STATE(AfxGetStaticModuleState()) Pin
panzerdivisionmarkus21-May-08 23:03
panzerdivisionmarkus21-May-08 23:03 
Questionproblem in migrating from VC6 to VC2005 Pin
ptr_Electron16-May-08 3:54
ptr_Electron16-May-08 3:54 
AnswerRe: problem in migrating from VC6 to VC2005 Pin
led mike16-May-08 4:17
led mike16-May-08 4:17 
Questionradiobuttons,vc++ Pin
Mohanraj D16-May-08 3:48
Mohanraj D16-May-08 3:48 
AnswerRe: radiobuttons,vc++ Pin
CPallini16-May-08 3:54
mveCPallini16-May-08 3:54 
AnswerRe: radiobuttons,vc++ Pin
toxcct16-May-08 4:03
toxcct16-May-08 4:03 
AnswerRe: radiobuttons,vc++ Pin
David Crow16-May-08 4:58
David Crow16-May-08 4:58 
GeneralRe: radiobuttons,vc++ Pin
Hamid_RT16-May-08 7:32
Hamid_RT16-May-08 7:32 
GeneralRe: radiobuttons,vc++ Pin
David Crow16-May-08 7:56
David Crow16-May-08 7:56 
GeneralRe: radiobuttons,vc++ Pin
Hamid_RT16-May-08 18:11
Hamid_RT16-May-08 18:11 
AnswerRe: radiobuttons,vc++ Pin
Hamid_RT16-May-08 18:12
Hamid_RT16-May-08 18:12 
GeneralRe: radiobuttons,vc++ Pin
Mohanraj D16-May-08 20:15
Mohanraj D16-May-08 20:15 
GeneralRe: radiobuttons,vc++ Pin
Hamid_RT16-May-08 20:35
Hamid_RT16-May-08 20:35 
Questionrichedit control content Pin
Bilge Kaan16-May-08 3:28
Bilge Kaan16-May-08 3:28 
QuestionRe: richedit control content Pin
CPallini16-May-08 3:41
mveCPallini16-May-08 3:41 
AnswerRe: richedit control content Pin
Bilge Kaan16-May-08 4:01
Bilge Kaan16-May-08 4:01 

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.