Click here to Skip to main content
15,902,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: can not access the calss view???? Pin
PengFeidu7-Sep-03 20:00
PengFeidu7-Sep-03 20:00 
AnswerRe: can not access the calss view???? Pin
Fredrik Skog7-Sep-03 20:24
Fredrik Skog7-Sep-03 20:24 
AnswerRe: can not access the calss view???? Pin
Hari Krishnan (Noida)7-Sep-03 20:37
Hari Krishnan (Noida)7-Sep-03 20:37 
GeneralHelp! Problem loading BITMAP into the Custom Dialog Pin
colormyiris7-Sep-03 16:21
colormyiris7-Sep-03 16:21 
GeneralWindows memory mapping question Pin
Kuniva7-Sep-03 10:00
Kuniva7-Sep-03 10:00 
GeneralRe: Windows memory mapping question Pin
Dave Bryant7-Sep-03 14:37
Dave Bryant7-Sep-03 14:37 
GeneralRe: Windows memory mapping question Pin
Kuniva7-Sep-03 22:28
Kuniva7-Sep-03 22:28 
Generala perplexing access violation... I just wanna be tidy! ;-) Pin
ENewton7-Sep-03 8:25
ENewton7-Sep-03 8:25 
Confused | :confused:

can anybody tell me why i'm getting an access violation on the first "if hWnd != NULL

I'm trying to make sure resources get cleaned up when the destructor is called. trying not to use MFC because of mixed mode [CLR/Native] DLL issues

<br />
CPrefsDialog::~CPrefsDialog(void)<br />
{<br />
#ifdef _DEBUG<br />
	char buffer[1024];<br />
	if( hWnd != NULL )<br />
		sprintf(buffer,"hWnd valid",hWnd);<br />
	else<br />
		sprintf(buffer,"hWnd is null");<br />
	MessageBox(HWND_DESKTOP,buffer,"~CPrefsDialog",MB_OK);<br />
#endif<br />
<br />
	if( hWnd != NULL ) <br />
	{<br />
		DestroyWindow(hWnd);<br />
		hWnd = NULL;<br />
	}<br />
}<br />

GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Taka Muraoka7-Sep-03 8:54
Taka Muraoka7-Sep-03 8:54 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
ENewton7-Sep-03 9:39
ENewton7-Sep-03 9:39 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Taka Muraoka7-Sep-03 9:41
Taka Muraoka7-Sep-03 9:41 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
ENewton7-Sep-03 10:05
ENewton7-Sep-03 10:05 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Ted Ferenc7-Sep-03 12:26
Ted Ferenc7-Sep-03 12:26 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Gary R. Wheeler7-Sep-03 12:30
Gary R. Wheeler7-Sep-03 12:30 
GeneralConverting a MFC CView app to an ActiveX control Pin
AJ1237-Sep-03 7:29
AJ1237-Sep-03 7:29 
GeneralRe: Converting a MFC CView app to an ActiveX control Pin
igor19607-Sep-03 10:34
igor19607-Sep-03 10:34 
GeneralDomains and Workgroups List Pin
Frank Deo7-Sep-03 7:20
Frank Deo7-Sep-03 7:20 
GeneralRe: Domains and Workgroups List Pin
Frank Deo7-Sep-03 9:56
Frank Deo7-Sep-03 9:56 
GeneralReferencing &quot;internal&quot; resources in MFC Pin
Antti Keskinen7-Sep-03 5:28
Antti Keskinen7-Sep-03 5:28 
GeneralRe: Referencing &quot;internal&quot; resources in MFC Pin
Michael Dunn7-Sep-03 8:17
sitebuilderMichael Dunn7-Sep-03 8:17 
GeneralRe: Referencing &quot;internal&quot; resources in MFC Pin
PJ Arends7-Sep-03 8:21
professionalPJ Arends7-Sep-03 8:21 
GeneralRe: Referencing &quot;internal&quot; resources in MFC Pin
Antti Keskinen7-Sep-03 10:45
Antti Keskinen7-Sep-03 10:45 
GeneralRe: Referencing &quot;internal&quot; resources in MFC Pin
Michael Dunn7-Sep-03 13:07
sitebuilderMichael Dunn7-Sep-03 13:07 
GeneralRe: Referencing &quot;internal&quot; resources in MFC Pin
Antti Keskinen7-Sep-03 18:12
Antti Keskinen7-Sep-03 18:12 
Generalnon modal Dialog in Background Pin
DarkMarine7-Sep-03 5:11
DarkMarine7-Sep-03 5:11 

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.