Click here to Skip to main content
15,916,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to run these codes? Pin
FlyingDancer12-Jun-03 3:08
FlyingDancer12-Jun-03 3:08 
GeneralRegistry problems Pin
rohit.dhamija11-Jun-03 3:42
rohit.dhamija11-Jun-03 3:42 
QuestionWhat is the XP Accessibility Wizard doing? Pin
mcgahanfl11-Jun-03 3:36
mcgahanfl11-Jun-03 3:36 
QuestionHow can I create and post a web page Pin
gordingin11-Jun-03 3:28
gordingin11-Jun-03 3:28 
Generalproblem using CDialog::Create, assert error Pin
Luis E. Cuadrado11-Jun-03 3:21
Luis E. Cuadrado11-Jun-03 3:21 
GeneralRe: problem using CDialog::Create, assert error Pin
Tim Smith11-Jun-03 3:36
Tim Smith11-Jun-03 3:36 
GeneralRe: problem using CDialog::Create, assert error Pin
David Crow11-Jun-03 3:44
David Crow11-Jun-03 3:44 
GeneralRe: problem using CDialog::Create, assert error Pin
Luis E. Cuadrado11-Jun-03 4:13
Luis E. Cuadrado11-Jun-03 4:13 
Hi DavidCrow,
Yes, I stepped through the Create() code. The assertion is comming in the AfxFindResourceHandle() function. I included the portion of the code where the assert error comes and I pointed out where the assert error occurs. Aparently the value pModuleState->m_bSystem returned by AfxGetModuleState() is causing the assert error. Here is the code.
HINSTANCE AFXAPI AfxFindResourceHandle(LPCTSTR lpszName, LPCTSTR lpszType)
{
	ASSERT(lpszName != NULL);
	ASSERT(lpszType != NULL);

	HINSTANCE hInst;

	// first check the main module state
	AFX_MODULE_STATE* pModuleState = AfxGetModuleState();
	if (!pModuleState->m_bSystem)
	{
		hInst = AfxGetResourceHandle(); //-->ASSERT OCCURS HERE!!!
		if (::FindResource(hInst, lpszName, lpszType) != NULL)
			return hInst;
	}
.
.
.

I hope this helps. Before I forget, thanks for your reply David

Luis E. Cuadrado
Blush | :O )
GeneralRe: problem using CDialog::Create, assert error Pin
David Crow11-Jun-03 4:33
David Crow11-Jun-03 4:33 
GeneralRe: problem using CDialog::Create, assert error Pin
Luis E. Cuadrado11-Jun-03 4:56
Luis E. Cuadrado11-Jun-03 4:56 
GeneralRe: problem using CDialog::Create, assert error Pin
Ryan Binns11-Jun-03 5:03
Ryan Binns11-Jun-03 5:03 
GeneralSHChangeNotifyRegister Questions!!! Pin
zmnie11-Jun-03 2:58
zmnie11-Jun-03 2:58 
GeneralRe: SHChangeNotifyRegister Questions!!! Pin
David Crow11-Jun-03 3:34
David Crow11-Jun-03 3:34 
GeneralRe: SHChangeNotifyRegister Questions!!! Pin
zmnie11-Jun-03 4:30
zmnie11-Jun-03 4:30 
GeneralRe: SHChangeNotifyRegister Questions!!! Pin
David Crow11-Jun-03 4:42
David Crow11-Jun-03 4:42 
GeneralRe: SHChangeNotifyRegister Questions!!! Pin
zmnie11-Jun-03 4:48
zmnie11-Jun-03 4:48 
GeneralRe: SHChangeNotifyRegister Questions!!! Pin
zmnie11-Jun-03 4:53
zmnie11-Jun-03 4:53 
GeneralRe: SHChangeNotifyRegister Questions!!! Pin
David Crow11-Jun-03 5:07
David Crow11-Jun-03 5:07 
GeneralRe: SHChangeNotifyRegister Questions!!! Pin
zmnie11-Jun-03 5:28
zmnie11-Jun-03 5:28 
GeneralParser help Pin
Anonymous11-Jun-03 2:57
Anonymous11-Jun-03 2:57 
Questionhow to add icon to system imagelist? Pin
zmnie11-Jun-03 2:51
zmnie11-Jun-03 2:51 
GeneralI don't want MAK file Pin
harinath11-Jun-03 2:12
professionalharinath11-Jun-03 2:12 
GeneralRe: I don't want MAK file Pin
basementman11-Jun-03 4:02
basementman11-Jun-03 4:02 
GeneralRe: I don't want MAK file Pin
John M. Drescher11-Jun-03 4:13
John M. Drescher11-Jun-03 4:13 
GeneralRe: I don't want MAK file Pin
Anonymous11-Jun-03 7:37
Anonymous11-Jun-03 7:37 

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.