Click here to Skip to main content
16,010,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: c++ graphics Pin
conio19-Jul-03 8:30
conio19-Jul-03 8:30 
GeneralRe: c++ graphics Pin
virtualspy20-Jul-03 0:46
virtualspy20-Jul-03 0:46 
GeneralRe: c++ graphics Pin
John M. Drescher19-Jul-03 18:57
John M. Drescher19-Jul-03 18:57 
QuestionManaged C++? Pin
DaveE9th18-Jul-03 21:09
DaveE9th18-Jul-03 21:09 
AnswerRe: Managed C++? Pin
Nish Nishant18-Jul-03 21:33
sitebuilderNish Nishant18-Jul-03 21:33 
AnswerRe: Managed C++? Pin
Mike Nordell19-Jul-03 4:16
Mike Nordell19-Jul-03 4:16 
GeneralRe: Managed C++? Pin
DaveE9th19-Jul-03 9:36
DaveE9th19-Jul-03 9:36 
GeneralComboBox Pin
W. Hammer -sledge-18-Jul-03 19:33
W. Hammer -sledge-18-Jul-03 19:33 
Confused | :confused: I am using the MFC. I have created a dialog, which has a static control and a comboBox, both elements have membervariables. I want to show the dialog like this:

....<br />
  CMyDialogDlg  mydialog;<br />
  mydialog.m_static.SetWindowText("this works");<br />
  mydialog.m_combo.AddString("this crashes");<br />
  mydialog.DoModal();<br />
  ....


There is no problem setting the windowtext of the staticcontrol. But if i use AddString before the dialog is shown by DoModal(), it crashes. If i use AddString in InitDialog() , it works.

Can you explain me why?? what have i forgotten?
GeneralRe: ComboBox Pin
Ryan Binns18-Jul-03 20:05
Ryan Binns18-Jul-03 20:05 
GeneralRe: ComboBox Pin
W. Hammer -sledge-19-Jul-03 0:15
W. Hammer -sledge-19-Jul-03 0:15 
GeneralRe: ComboBox Pin
Ryan Binns19-Jul-03 0:30
Ryan Binns19-Jul-03 0:30 
GeneralRe: ComboBox Pin
conio19-Jul-03 8:36
conio19-Jul-03 8:36 
GeneralRe: ComboBox Pin
Terry O'Nolley20-Jul-03 17:01
Terry O'Nolley20-Jul-03 17:01 
Generalmouseleave Pin
sdfdsfa18-Jul-03 16:50
sdfdsfa18-Jul-03 16:50 
GeneralRe: mouseleave Pin
J. Dunlap18-Jul-03 21:51
J. Dunlap18-Jul-03 21:51 
GeneralRe: mouseleave Pin
Ryan Binns19-Jul-03 0:35
Ryan Binns19-Jul-03 0:35 
GeneralRe: mouseleave Pin
shinay19-Jul-03 7:46
shinay19-Jul-03 7:46 
QuestionWhy use Multi-thread Servers? Pin
Aidman18-Jul-03 13:25
Aidman18-Jul-03 13:25 
AnswerRe: Why use Multi-thread Servers? Pin
Anders Molin18-Jul-03 13:39
professionalAnders Molin18-Jul-03 13:39 
AnswerRe: Why use Multi-thread Servers? Pin
Tim Smith18-Jul-03 13:50
Tim Smith18-Jul-03 13:50 
AnswerRe: Why use Multi-thread Servers? Pin
Aidman18-Jul-03 14:55
Aidman18-Jul-03 14:55 
GeneralRe: Why use Multi-thread Servers? Pin
Ilushka20-Jul-03 21:28
Ilushka20-Jul-03 21:28 
GeneralContext help button for CPropertySheet Pin
haritadala18-Jul-03 11:32
haritadala18-Jul-03 11:32 
GeneralRe: Context help button for CPropertySheet Pin
Ted Ferenc18-Jul-03 12:51
Ted Ferenc18-Jul-03 12:51 
GeneralRe: Context help button for CPropertySheet Pin
haritadala19-Jul-03 7:51
haritadala19-Jul-03 7:51 

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.