Click here to Skip to main content
12,759,593 members (32,888 online)

C / C++ / MFC

 
GeneralProgram crashes when I try to assign values to a CListBox in a dialog window created from my main dialog window Pin
Anonymous11-Jun-01 17:06
memberAnonymous11-Jun-01 17:06 
GeneralRe: Program crashes when I try to assign values to a CListBox in a dialog window created from my main dialog window Pin
Radif Masud11-Jun-01 19:14
memberRadif Masud11-Jun-01 19:14 
GeneralNope Pin
Anonymous12-Jun-01 0:44
memberAnonymous12-Jun-01 0:44 
GeneralRe: Program crashes when I try to assign values to a CListBox in a dialog window created from my main dialog window Pin
Ben Burnett11-Jun-01 20:27
memberBen Burnett11-Jun-01 20:27 
GeneralCrashes no matter where Pin
Anonymous12-Jun-01 0:47
memberAnonymous12-Jun-01 0:47 
GeneralRe: Crashes no matter where Pin
Michael P Butler12-Jun-01 1:08
memberMichael P Butler12-Jun-01 1:08 
GeneralRe: Crashes no matter where Pin
Anonymous12-Jun-01 1:26
memberAnonymous12-Jun-01 1:26 
GeneralRe: Program crashes when I try to assign values to a CListBox in a dialog window created from my main dialog window Pin
Ulf12-Jun-01 1:16
memberUlf12-Jun-01 1:16 
Trace into the MFC source and check where the assertion occurs. Any hints in the source code comments? Also check if the dialog's m_hWnd is NULL before you call AddString().

Are you trying to do something like this?
CMyDlg dlg;
dlg.m_wndList.AddString("asdf"); // Assertion error here!
dlg.DoModal();

This will fail, because the dialog's window handle (and the list) hasn't actually been created yet.

--------------
"Fabricati Diem, Pvnk"
GeneralRe: Program crashes when I try to assign values to a CListBox in a dialog window created from my main dialog window Pin
Anonymous12-Jun-01 1:24
memberAnonymous12-Jun-01 1:24 
GeneralNot quite what I do. Pin
Anonymous12-Jun-01 1:34
memberAnonymous12-Jun-01 1:34 
GeneralRe: Not quite what I do. Pin
Ulf12-Jun-01 1:59
memberUlf12-Jun-01 1:59 
GeneralNope, that didn't work Pin
Anonymous12-Jun-01 12:19
memberAnonymous12-Jun-01 12:19 
GeneralRe: Nope, that didn't work Pin
Ulf13-Jun-01 0:19
memberUlf13-Jun-01 0:19 
GeneralRe: Not quite what I do. Pin
Michael P Butler12-Jun-01 23:39
memberMichael P Butler12-Jun-01 23:39 
GeneralLPT Port IO In Win2k Pin
Joseph LeBlanc11-Jun-01 16:54
memberJoseph LeBlanc11-Jun-01 16:54 
GeneralChar value for line break in an Edit Box Pin
SiKLyChILd11-Jun-01 15:26
memberSiKLyChILd11-Jun-01 15:26 
GeneralRe: Char value for line break in an Edit Box Pin
Anonymous11-Jun-01 15:45
memberAnonymous11-Jun-01 15:45 
GeneralRe: Char value for line break in an Edit Box Pin
Michael Dunn11-Jun-01 17:29
memberMichael Dunn11-Jun-01 17:29 
GeneralTHANK YOU Pin
SiKLyChILd11-Jun-01 18:57
memberSiKLyChILd11-Jun-01 18:57 
GeneralRe: THANK YOU Pin
Ben Burnett11-Jun-01 20:30
memberBen Burnett11-Jun-01 20:30 
GeneralDocking Windows and MDI Pin
Jamie Nordmeyer11-Jun-01 13:17
memberJamie Nordmeyer11-Jun-01 13:17 
GeneralCreating controls in the client area Pin
Waleed11-Jun-01 11:40
memberWaleed11-Jun-01 11:40 
GeneralRe: Creating controls in the client area Pin
Igor Soukhov11-Jun-01 23:56
memberIgor Soukhov11-Jun-01 23:56 
QuestionDeleting folders with SHFileOperation? Pin
Jim A. Johnson11-Jun-01 10:50
memberJim A. Johnson11-Jun-01 10:50 
AnswerRe: Deleting folders with SHFileOperation? Pin
Jim A. Johnson12-Jun-01 6:55
memberJim A. Johnson12-Jun-01 6:55 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 21 Feb 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid