Click here to Skip to main content
15,896,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: dWhat is protected inheritance? Pin
Selvam R28-Jan-05 1:09
professionalSelvam R28-Jan-05 1:09 
AnswerRe: dWhat is protected inheritance? Pin
trelliot28-Jan-05 2:39
trelliot28-Jan-05 2:39 
GeneralCode for Hibernate and turn of monitor Pin
Rajesh_K_Sharma27-Jan-05 21:39
Rajesh_K_Sharma27-Jan-05 21:39 
GeneralRe: Code for Hibernate and turn of monitor Pin
geo_m27-Jan-05 21:49
geo_m27-Jan-05 21:49 
Generalgamma Pin
viliam27-Jan-05 21:39
viliam27-Jan-05 21:39 
GeneralHelp to debug Error!! Pin
Anonymous27-Jan-05 21:13
Anonymous27-Jan-05 21:13 
GeneralRe: Help to debug Error!! Pin
James R. Twine28-Jan-05 2:44
James R. Twine28-Jan-05 2:44 
GeneralRe: Help to debug Error!! Pin
Anonymous28-Jan-05 13:43
Anonymous28-Jan-05 13:43 
Thanks for your reply!

To be more precise, i only get the error when i am exiting the main application. My project is a SDI project. When i compile and link in Release mode, there's no problem at all. From what i understand about MFC, when we use the keyword new for allocation purposes, we should use delete in conjunction with it right?

i only used new when i am initializing my form view.i use a pictutre control to reserve a place on my form view for my property sheet(ie. a place holder). my code goes like this:

/********************************************************/
// create and associate the property sheet with
//the "place holder" window
/********************************************************/

CMySheet *pMySheet;<br />
<br />
	CWnd* pPlaceHolder = GetDlgItem(IDC_PLACEHOLDER);<br />
	<br />
	pMySheet = new CMySheet(pPlaceHolder);<br />
<br />
	if (!pMySheet->Create(pPlaceHolder, WS_CHILD | WS_VISIBLE, 0))<br />
	{<br />
		delete pMySheet;<br />
		pMySheet = NULL;<br />
		return;<br />
	}


// fit the property sheet into the place holder window
// and show it

CRect m_PlaceSheet;<br />
<br />
	GetDlgItem( IDC_PLACEHOLDER )->GetWindowRect( &m_PlaceSheet );<br />
<br />
	ScreenToClient( &m_PlaceSheet );<br />
<br />
	pMySheet->SetWindowPos( NULL, 0, 0, m_PlaceSheet.Width(), m_PlaceSheet.Height(), SWP_NOZORDER | SWP_NOACTIVATE );



Thanks for any help in advance!!
GeneralRe: Help to debug Error!! Pin
James R. Twine28-Jan-05 13:55
James R. Twine28-Jan-05 13:55 
Generalpopulate list view in VB from VC++ dll using SendMessage Api Pin
Mohamed Jaffar Sagir27-Jan-05 21:05
Mohamed Jaffar Sagir27-Jan-05 21:05 
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
S Douglas27-Jan-05 23:33
professionalS Douglas27-Jan-05 23:33 
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
Mohamed Jaffar Sagir28-Jan-05 1:54
Mohamed Jaffar Sagir28-Jan-05 1:54 
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
S Douglas28-Jan-05 3:52
professionalS Douglas28-Jan-05 3:52 
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
Mohamed Jaffar Sagir28-Jan-05 4:15
Mohamed Jaffar Sagir28-Jan-05 4:15 
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
S Douglas31-Jan-05 1:07
professionalS Douglas31-Jan-05 1:07 
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
James R. Twine28-Jan-05 2:58
James R. Twine28-Jan-05 2:58 
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
Mohamed Jaffar Sagir28-Jan-05 4:01
Mohamed Jaffar Sagir28-Jan-05 4:01 
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
James R. Twine28-Jan-05 13:48
James R. Twine28-Jan-05 13:48 
GeneralMX query through NSlookup Pin
Ankit Aneja27-Jan-05 20:21
Ankit Aneja27-Jan-05 20:21 
GeneralRe: MX query through NSlookup Pin
ThatsAlok27-Jan-05 20:28
ThatsAlok27-Jan-05 20:28 
GeneralRe: MX query through NSlookup Pin
Ankit Aneja27-Jan-05 20:34
Ankit Aneja27-Jan-05 20:34 
GeneralRe: MX query through NSlookup Pin
22491727-Jan-05 21:27
22491727-Jan-05 21:27 
GeneralRe: MX query through NSlookup Pin
Ankit Aneja27-Jan-05 22:12
Ankit Aneja27-Jan-05 22:12 
GeneralImageList Control Pin
Rajmathi27-Jan-05 19:57
Rajmathi27-Jan-05 19:57 
QuestionHow to split pcl data file to print separate page Pin
hunghn27-Jan-05 19:40
hunghn27-Jan-05 19:40 

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.