Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAdding unicode support Pin
Shiva Prasad22-Nov-04 18:34
Shiva Prasad22-Nov-04 18:34 
Generalmfc mysteries Pin
the_augy22-Nov-04 16:47
the_augy22-Nov-04 16:47 
GeneralRe: mfc mysteries Pin
shiraztk22-Nov-04 18:01
shiraztk22-Nov-04 18:01 
GeneralRe: mfc mysteries Pin
the_augy26-Nov-04 19:45
the_augy26-Nov-04 19:45 
GeneralDynamically change menu in main frame Pin
Marcus Spitzmiller22-Nov-04 16:17
Marcus Spitzmiller22-Nov-04 16:17 
GeneralRe: Dynamically change menu in main frame Pin
nguyenvhn22-Nov-04 18:18
nguyenvhn22-Nov-04 18:18 
GeneralRe: Dynamically change menu in main frame Pin
Marcus Spitzmiller23-Nov-04 3:18
Marcus Spitzmiller23-Nov-04 3:18 
Generaltab control error"illegal use of this type as an expression" Pin
vc-programmer-22-Nov-04 16:16
vc-programmer-22-Nov-04 16:16 
My application is MDI application.
So,I cannot know what parameter use in following code???
m_tabPages[0]->Create(CMyTabDlg,this);

>>>>>>>>>>>>>>>This is my error>>>>>>>>>>>>>>
MyTabCtrl.cpp(54) : error C2275: 'CMyTabDlg' :
illegal use of this type as an expression
MyTabdlg.h(13) :
see declaration of CMyTabDlg'



>>>>>>>>>>>>>>>This is My code>>>>>>>>>>>>>>>>

//MyTabCtrl.cpp
CDialog *m_tabPages[2];

//MyTabCtrl.cpp
void CMyTabCtrl::Init()
{
m_tabCurrent=0;

m_tabPages[0]->Create(CMyTabDlg,this);
//what i use parameter

m_tabPages[1]->Create(CMyTabDlg,this);
//what i use parameter

m_tabPages[0]->ShowWindow(SW_SHOW);
m_tabPages[1]->ShowWindow(SW_HIDE);

SetRectangle();
}

//MyView.h
CMyTabCtrl m_tab;

//MyView.cpp
void CMyView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
m_tab.InsertItem(0, _T("One"));
m_tab.InsertItem(1, _T("Two"));
m_tab.Init();
}

GeneralRe: tab control error"illegal use of this type as an expression" Pin
nguyenvhn22-Nov-04 18:26
nguyenvhn22-Nov-04 18:26 
GeneralRe: tab control error"illegal use of this type as an expression" Pin
vc-programmer-22-Nov-04 18:53
vc-programmer-22-Nov-04 18:53 
GeneralRe: tab control error"illegal use of this type as an expression" Pin
nguyenvhn22-Nov-04 20:05
nguyenvhn22-Nov-04 20:05 
GeneralRe: tab control error"illegal use of this type as an expression" Pin
vc-programmer-22-Nov-04 20:18
vc-programmer-22-Nov-04 20:18 
GeneralInverse of a Matrix Pin
C++ Seeker22-Nov-04 15:08
sussC++ Seeker22-Nov-04 15:08 
GeneralRe: Inverse of a Matrix Pin
Andrew Walker22-Nov-04 15:28
Andrew Walker22-Nov-04 15:28 
GeneralRe: Inverse of a Matrix Pin
bryce22-Nov-04 16:00
bryce22-Nov-04 16:00 
GeneralRe: Inverse of a Matrix Pin
Ryan Binns22-Nov-04 17:10
Ryan Binns22-Nov-04 17:10 
GeneralRe: Inverse of a Matrix Pin
toxcct22-Nov-04 22:04
toxcct22-Nov-04 22:04 
Generalmeet a question Pin
fropro22-Nov-04 14:43
fropro22-Nov-04 14:43 
GeneralRe: meet a question Pin
BaldwinMartin23-Nov-04 10:04
BaldwinMartin23-Nov-04 10:04 
GeneralCan't modify afxcore.rtf or afxprint.rtf Pin
Anonymous22-Nov-04 14:02
Anonymous22-Nov-04 14:02 
GeneralRe: Can't modify afxcore.rtf or afxprint.rtf Pin
Graham Bradshaw22-Nov-04 14:12
Graham Bradshaw22-Nov-04 14:12 
GeneralMethods to graphically simulate moving 'animals' in Jungle Pin
PSU Casper22-Nov-04 13:15
PSU Casper22-Nov-04 13:15 
GeneralRe: Methods to graphically simulate moving 'animals' in Jungle Pin
Christian Graus22-Nov-04 13:44
protectorChristian Graus22-Nov-04 13:44 
GeneralRe: Methods to graphically simulate moving 'animals' in Jungle Pin
PSU Casper22-Nov-04 15:33
PSU Casper22-Nov-04 15:33 
GeneralRe: Methods to graphically simulate moving 'animals' in Jungle Pin
User 21559722-Nov-04 20:42
User 21559722-Nov-04 20:42 

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.