Click here to Skip to main content
15,899,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: 'Forward Class Declaration' Not Working Pin
«_Superman_»12-May-12 20:53
professional«_Superman_»12-May-12 20:53 
AnswerRe: 'Forward Class Declaration' Not Working Pin
AmbiguousName12-May-12 22:23
AmbiguousName12-May-12 22:23 
AnswerRe: 'Forward Class Declaration' Not Working Pin
Richard MacCutchan12-May-12 21:30
mveRichard MacCutchan12-May-12 21:30 
GeneralRe: 'Forward Class Declaration' Not Working Pin
AmbiguousName12-May-12 22:29
AmbiguousName12-May-12 22:29 
GeneralRe: 'Forward Class Declaration' Not Working Pin
Richard MacCutchan12-May-12 22:34
mveRichard MacCutchan12-May-12 22:34 
AnswerRe: 'Forward Class Declaration' Not Working Pin
AmbiguousName12-May-12 22:56
AmbiguousName12-May-12 22:56 
GeneralRe: 'Forward Class Declaration' Not Working Pin
Richard MacCutchan13-May-12 1:18
mveRichard MacCutchan13-May-12 1:18 
AnswerRe: 'Forward Class Declaration' Not Working Pin
krmed13-May-12 3:34
krmed13-May-12 3:34 
Since the assertion indicates that the mhWnd is NULL, the problem lies in this area:

Overloaded_Name wrote:
BOOL CMainDialogDlg::OnInitDialog()
{
tabCtrl = new CMyTabCtrl;
tabCtrl->InitizlizeTabs();
}

The first line creates an instance of the class, but does not create the window associated with it.

The second line tries to insert information into the window - but there is none.

As Richard MacCutchen said, you need to Create the tab control.

Hope this helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

GeneralRe: 'Forward Class Declaration' Not Working Pin
Richard MacCutchan13-May-12 5:04
mveRichard MacCutchan13-May-12 5:04 
GeneralRe: 'Forward Class Declaration' Not Working Pin
AmbiguousName13-May-12 6:59
AmbiguousName13-May-12 6:59 
QuestionSubclass Procedure failed for edit control Pin
vishalgpt12-May-12 3:09
vishalgpt12-May-12 3:09 
AnswerRe: Subclass Procedure failed for edit control Pin
«_Superman_»12-May-12 4:25
professional«_Superman_»12-May-12 4:25 
GeneralRe: Subclass Procedure failed for edit control Pin
vishalgpt12-May-12 4:40
vishalgpt12-May-12 4:40 
GeneralRe: Subclass Procedure failed for edit control Pin
«_Superman_»12-May-12 4:47
professional«_Superman_»12-May-12 4:47 
GeneralRe: Subclass Procedure failed for edit control Pin
vishalgpt12-May-12 5:36
vishalgpt12-May-12 5:36 
QuestionOpening files in c++ Pin
Jirik60727713612-May-12 2:38
Jirik60727713612-May-12 2:38 
AnswerRe: Opening files in c++ Pin
Richard MacCutchan12-May-12 2:51
mveRichard MacCutchan12-May-12 2:51 
GeneralRe: Opening files in c++ Pin
Jirik60727713612-May-12 2:56
Jirik60727713612-May-12 2:56 
AnswerRe: Opening files in c++ Pin
«_Superman_»12-May-12 4:29
professional«_Superman_»12-May-12 4:29 
Question64 bit option not coming Pin
appollosputnik11-May-12 7:28
appollosputnik11-May-12 7:28 
AnswerRe: 64 bit option not coming Pin
Albert Holguin11-May-12 8:08
professionalAlbert Holguin11-May-12 8:08 
QuestionRe: 64 bit option not coming Pin
Randor 11-May-12 8:38
professional Randor 11-May-12 8:38 
AnswerRe: 64 bit option not coming Pin
«_Superman_»11-May-12 17:34
professional«_Superman_»11-May-12 17:34 
GeneralRe: 64 bit option not coming Pin
Chris Losinger11-May-12 17:39
professionalChris Losinger11-May-12 17:39 
AnswerRe: 64 bit option not coming Pin
Luc Pattyn12-May-12 6:34
sitebuilderLuc Pattyn12-May-12 6:34 

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.