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

C / C++ / MFC

 
GeneralRe: calling int 21h from a __asm block of code Pin
Alexander M.,7-Aug-05 4:38
Alexander M.,7-Aug-05 4:38 
GeneralRe: calling int 21h from a __asm block of code Pin
Gary R. Wheeler7-Aug-05 4:52
Gary R. Wheeler7-Aug-05 4:52 
GeneralRe: calling int 21h from a __asm block of code Pin
CorvetteZ06067-Aug-05 6:08
CorvetteZ06067-Aug-05 6:08 
GeneralRe: calling int 21h from a __asm block of code Pin
David Crow8-Aug-05 8:42
David Crow8-Aug-05 8:42 
GeneralRe: calling int 21h from a __asm block of code Pin
Gary R. Wheeler8-Aug-05 12:56
Gary R. Wheeler8-Aug-05 12:56 
GeneralFailing Debug Assertion in DoModal() Pin
gremlinimp6-Aug-05 19:20
gremlinimp6-Aug-05 19:20 
GeneralRe: Failing Debug Assertion in DoModal() Pin
Jose Lamas Rios6-Aug-05 20:23
Jose Lamas Rios6-Aug-05 20:23 
GeneralRe: Failing Debug Assertion in DoModal() Pin
gremlinimp6-Aug-05 20:47
gremlinimp6-Aug-05 20:47 
For those interested, I will now answer, at least in part, my own question.:

Solution:
Override CMyDialog::OnInitDialog() and initialize the CTabCtrl there.

As far as I've traced it, CMyDialog::DoModal() calls CDialog::DoModal() (i.e. the base class fn.). This I knew. What I didn't know is that CDialog::DoModal() calls my OnInitDialog() (or some funtion up(down,whatever) on the call stack before DoModal returns does). I just assumed that CMyDialog's constructor was calling OnInitDialog()Blush | :O . So, CDialog::DoModal() apparently initializes some stuff behind the scenes before it calls OnInitDialog() which allows me to init my controls safely.

It is late and I am too tired to dig further.

If anyone out there understands the sequence of behind the scenes initializations or whatnot that happens between the call to CDialog::DoModal() and the call to OnInitDialog() please explain.
GeneralRe: Failing Debug Assertion in DoModal() Pin
gremlinimp6-Aug-05 20:49
gremlinimp6-Aug-05 20:49 
GeneralLarge Array Implementing Pin
Majid Shahabfar6-Aug-05 19:07
Majid Shahabfar6-Aug-05 19:07 
GeneralRe: Large Array Implementing Pin
John R. Shaw6-Aug-05 22:09
John R. Shaw6-Aug-05 22:09 
GeneralClistControl giving exceptions Pin
Aditya Rao6-Aug-05 17:38
Aditya Rao6-Aug-05 17:38 
GeneralRe: ClistControl giving exceptions Pin
Tim Smith6-Aug-05 18:07
Tim Smith6-Aug-05 18:07 
QuestionMultislider control? Pin
Ravi Bhavnani6-Aug-05 14:00
professionalRavi Bhavnani6-Aug-05 14:00 
AnswerFound it! Pin
Ravi Bhavnani6-Aug-05 14:39
professionalRavi Bhavnani6-Aug-05 14:39 
GeneralRe: Found it! Pin
Steve Mayfield6-Aug-05 18:26
Steve Mayfield6-Aug-05 18:26 
GeneralRe: Found it! Pin
Ravi Bhavnani6-Aug-05 18:29
professionalRavi Bhavnani6-Aug-05 18:29 
GeneralRe: Found it! Pin
Trollslayer6-Aug-05 23:25
mentorTrollslayer6-Aug-05 23:25 
GeneralOdd MessageBox Problem Pin
sir kaber6-Aug-05 13:43
sir kaber6-Aug-05 13:43 
GeneralRe: Odd MessageBox Problem Pin
sir kaber6-Aug-05 13:49
sir kaber6-Aug-05 13:49 
GeneralRe: Odd MessageBox Problem Pin
John R. Shaw7-Aug-05 0:22
John R. Shaw7-Aug-05 0:22 
GeneralRe: Odd MessageBox Problem Pin
sir kaber7-Aug-05 9:00
sir kaber7-Aug-05 9:00 
GeneralDialog problems with VC6.0 built under XP Pin
Haakon S.6-Aug-05 12:36
Haakon S.6-Aug-05 12:36 
GeneralRe: Dialog problems with VC6.0 built under XP Pin
John R. Shaw7-Aug-05 1:26
John R. Shaw7-Aug-05 1:26 
GeneralRe: Dialog problems with VC6.0 built under XP Pin
Haakon S.7-Aug-05 3:36
Haakon S.7-Aug-05 3:36 

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.