Click here to Skip to main content
15,881,856 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DDX and Arrays Pin
Chandrasekharan P11-Jun-09 23:00
Chandrasekharan P11-Jun-09 23:00 
GeneralRe: DDX and Arrays Pin
Caslen11-Jun-09 23:06
Caslen11-Jun-09 23:06 
GeneralRe: DDX and Arrays Pin
Chandrasekharan P11-Jun-09 23:08
Chandrasekharan P11-Jun-09 23:08 
AnswerRe: DDX and Arrays Pin
Ozer Karaagac11-Jun-09 23:14
professionalOzer Karaagac11-Jun-09 23:14 
GeneralRe: DDX and Arrays Pin
Caslen11-Jun-09 23:28
Caslen11-Jun-09 23:28 
GeneralRe: DDX and Arrays Pin
Ozer Karaagac11-Jun-09 23:39
professionalOzer Karaagac11-Jun-09 23:39 
GeneralRe: DDX and Arrays Pin
stevepqr12-Jun-09 0:02
stevepqr12-Jun-09 0:02 
QuestionSaving and Restoring Toolbars (Win32 SDK) Pin
signalatub11-Jun-09 22:03
signalatub11-Jun-09 22:03 
I am trying to Saving and Restoring Toolbars status by sending TB_SAVERESTORE message. MSDN says if you don't have user data to store with the toolbar buttons, you don't need to handle TBN_SAVE or TBN_RESTORE notification. So, now, the saving and restoring are fine, the program restores toolbar buttons correctly. However, if I try to kill that toolbar control restored, Visual Studio gives a warning message "Unhandled exception at 0x7c901230 in win32tst.exe: User breakpoint." This warning only shows if the program is launched inside the Visual Studio. It just runs fine if launched outside of Visual Studio. So I tried to debug with WinDbg.exe, and it gives a more detailed description of that user breakpoint warning "Invalid Address specified to RtlFreeHeap". Anybody knows what's wrong with the restoring? Thanks.

case WM_NOTIFY:
{
switch (((LPNMHDR)lParam)->code)
{
case TBN_GETBUTTONINFO:
{
LPTBNOTIFY lpTbNotify = (LPTBNOTIFY)lParam;

// Pass the next button from our array. There is no need to
// filter out buttons that are already used; they will be
// ignored.
int buttonCount = sizeof(tbButtons) / sizeof(TBBUTTON);
if (lpTbNotify->iItem < buttonCount)
{
lpTbNotify->tbButton = tbButtons[lpTbNotify->iItem];
return TRUE;
}
else
{
// No more buttons.
return FALSE;
}
}
break;

case TBN_QUERYINSERT:
case TBN_QUERYDELETE:
return TRUE;
case TBN_ENDADJUST:
{
TBSAVEPARAMS tbSave;
tbSave.hkr = HKEY_CURRENT_USER;
tbSave.pszSubKey = "Software\\key";
tbSave.pszValueName = "tbsave";
SendMessage(GetDlgItem(hWnd,ID_TOOLBAR),TB_SAVERESTORE, TRUE, (LPARAM)&tbSave);
}
return TRUE;
}
}
break;
QuestionAdd support for Memory leak detection Pin
Nandu_77b11-Jun-09 20:14
Nandu_77b11-Jun-09 20:14 
AnswerRe: Add support for Memory leak detection Pin
chirag_chauhan11-Jun-09 20:46
chirag_chauhan11-Jun-09 20:46 
QuestionRe: Add support for Memory leak detection Pin
Nandu_77b11-Jun-09 21:02
Nandu_77b11-Jun-09 21:02 
AnswerRe: Add support for Memory leak detection Pin
Hamid_RT11-Jun-09 21:32
Hamid_RT11-Jun-09 21:32 
Questionsegmentation problem Pin
sandeep_dhruwa11-Jun-09 19:31
sandeep_dhruwa11-Jun-09 19:31 
AnswerRe: segmentation problem Pin
Cedric Moonen11-Jun-09 20:13
Cedric Moonen11-Jun-09 20:13 
GeneralRe: segmentation problem Pin
sandeep_dhruwa11-Jun-09 21:06
sandeep_dhruwa11-Jun-09 21:06 
GeneralRe: segmentation problem Pin
Cedric Moonen11-Jun-09 21:11
Cedric Moonen11-Jun-09 21:11 
GeneralRe: segmentation problem Pin
sandeep_dhruwa11-Jun-09 23:51
sandeep_dhruwa11-Jun-09 23:51 
AnswerRe: segmentation problem Pin
CPallini11-Jun-09 21:25
mveCPallini11-Jun-09 21:25 
QuestionCall to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
Member 397434711-Jun-09 18:01
Member 397434711-Jun-09 18:01 
AnswerRe: Call to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
Naveen11-Jun-09 18:18
Naveen11-Jun-09 18:18 
GeneralRe: Call to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
N a v a n e e t h11-Jun-09 18:23
N a v a n e e t h11-Jun-09 18:23 
JokeRe: Call to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
Naveen11-Jun-09 18:26
Naveen11-Jun-09 18:26 
GeneralRe: Call to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
Member 397434711-Jun-09 18:28
Member 397434711-Jun-09 18:28 
AnswerRe: Call to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
N a v a n e e t h11-Jun-09 18:22
N a v a n e e t h11-Jun-09 18:22 
GeneralRe: Call to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
Member 397434711-Jun-09 18:38
Member 397434711-Jun-09 18:38 

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.