Click here to Skip to main content
15,921,774 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a doubt ? Pin
Iain Clarke, Warrior Programmer13-Apr-03 22:55
Iain Clarke, Warrior Programmer13-Apr-03 22:55 
GeneralThanks [a doubt ?] Pin
Anonymous13-Apr-03 23:02
Anonymous13-Apr-03 23:02 
GeneralQuestion about raw socket and TCP. Pin
George213-Apr-03 22:10
George213-Apr-03 22:10 
GeneralCDialog - change title Pin
LittleYellowBird13-Apr-03 21:55
LittleYellowBird13-Apr-03 21:55 
GeneralRe: CDialog - change title Pin
Taka Muraoka13-Apr-03 22:09
Taka Muraoka13-Apr-03 22:09 
GeneralRe: CDialog - change title Pin
Cedric Moonen13-Apr-03 22:10
Cedric Moonen13-Apr-03 22:10 
GeneralRe: CDialog - change title Pin
peterchen13-Apr-03 22:12
peterchen13-Apr-03 22:12 
GeneralRe: CDialog - change title Pin
Rage13-Apr-03 22:12
professionalRage13-Apr-03 22:12 
The assertion comes because you try to set the text before the dialog is created with DoModal(), so the dialog has no handle, and the API function fails.

To do it properly, go in the CDlgCal::OnInitDialog() (Override the WM_INITDIALOG message if you do not have that function present in the class browser), and put your code in this function. i.e. :

... CDialog::OnInitDialog(...bla...)
{
...    
 SetWindowText("Step to something");
...
}


~RaGE();
GeneralRe: CDialog - change title Pin
LittleYellowBird13-Apr-03 22:22
LittleYellowBird13-Apr-03 22:22 
Generalprogramm crashes wenn retrieving a CString Pin
Willem B13-Apr-03 21:28
Willem B13-Apr-03 21:28 
GeneralRe: programm crashes wenn retrieving a CString Pin
Joaquín M López Muñoz13-Apr-03 23:03
Joaquín M López Muñoz13-Apr-03 23:03 
GeneralRe: programm crashes wenn retrieving a CString Pin
Willem B13-Apr-03 23:13
Willem B13-Apr-03 23:13 
GeneralRe: programm crashes wenn retrieving a CString Pin
Willem B13-Apr-03 23:16
Willem B13-Apr-03 23:16 
GeneralRe: programm crashes wenn retrieving a CString Pin
Willem B13-Apr-03 23:19
Willem B13-Apr-03 23:19 
GeneralRe: programm crashes wenn retrieving a CString Pin
Iain Clarke, Warrior Programmer13-Apr-03 23:07
Iain Clarke, Warrior Programmer13-Apr-03 23:07 
GeneralMy app. under Win98? Problem with DLL's Pin
whofmans13-Apr-03 20:40
whofmans13-Apr-03 20:40 
GeneralRe: My app. under Win98? Problem with DLL's Pin
Tal Rasha's Guardianship13-Apr-03 20:46
Tal Rasha's Guardianship13-Apr-03 20:46 
GeneralRe: My app. under Win98? Problem with DLL's Pin
whofmans13-Apr-03 21:13
whofmans13-Apr-03 21:13 
QuestionHow can I modify the menus in a multi-doc application Pin
Tal Rasha's Guardianship13-Apr-03 20:35
Tal Rasha's Guardianship13-Apr-03 20:35 
AnswerRe: How can I modify the menus in a multi-doc application Pin
Roger Allen14-Apr-03 1:46
Roger Allen14-Apr-03 1:46 
QuestionCan I design a webserivce with c#,now I want use it with c++ and webservice have session state Pin
wxdwxd13-Apr-03 19:15
wxdwxd13-Apr-03 19:15 
GeneralUpdating CListCtrl using Modal CDialog Pin
Bonnie213-Apr-03 18:06
Bonnie213-Apr-03 18:06 
GeneralRe: Updating CListCtrl using Modal CDialog Pin
Ravi Bhavnani13-Apr-03 18:25
professionalRavi Bhavnani13-Apr-03 18:25 
GeneralConvert a char* to a variant_t Pin
Paul Farry13-Apr-03 17:10
professionalPaul Farry13-Apr-03 17:10 
GeneralRe: Convert a char* to a variant_t Pin
Brian Shifrin13-Apr-03 17:46
Brian Shifrin13-Apr-03 17:46 

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.