Click here to Skip to main content
16,006,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to add,modify and delete data from mysql server. Help me!!! Pin
Anonymous2-Jun-03 9:21
Anonymous2-Jun-03 9:21 
AnswerRe: how to add,modify and delete data from mysql server. Help me!!! Pin
siong2-Jun-03 17:16
siong2-Jun-03 17:16 
GeneralRe: how to add,modify and delete data from mysql server. Help me!!! Pin
Anonymous3-Jun-03 4:49
Anonymous3-Jun-03 4:49 
GeneralRe: how to add,modify and delete data from mysql server. Help me!!! Pin
siong here3-Jun-03 5:10
susssiong here3-Jun-03 5:10 
GeneralRe: how to add,modify and delete data from mysql server. Help me!!! Pin
Anonymous3-Jun-03 6:14
Anonymous3-Jun-03 6:14 
Generalwhy "CStatusBar GetStatusBar(){ return m_wndStatusBar; }" cause problem Pin
yccheok1-Jun-03 5:27
yccheok1-Jun-03 5:27 
GeneralRe: why "CStatusBar GetStatusBar(){ return m_wndStatusBar; }" cause problem Pin
Dominik Reichl1-Jun-03 9:32
Dominik Reichl1-Jun-03 9:32 
Generalcompilation problem (use of undefined type 'CFaceDlg') while using class keyword to do forward declaration Pin
yccheok1-Jun-03 5:25
yccheok1-Jun-03 5:25 
i just move from c to c++ recently and have no idea on the causes of the following compilation problem (i am using visual c++ 6.0).
=======================================================================
// FaceDlg.h
#include "Picture.h"

class CFaceDlg : public CDialog
{
// Construction
public:
CFaceDlg(CWnd* pParent = NULL); // standard constructor
void SayHai(void);

=======================================================================
// Picture.h
class CFaceDlg;

class CPicture : public CStatic
{
// Construction
public:
CPicture(CFaceDlg* parent);
CFaceDlg* m_pParent;

=======================================================================
// FaceDlg.cpp
BOOL CFaceDlg::OnInitDialog()
{
// ... wizard generated initialization code ommited...

// TODO: Add extra initialization here
m_pPicture = new CPicture(this);

return TRUE; // return TRUE unless you set the focus to a control
}
=======================================================================
// Picture.cpp
CPicture::CPicture(CFaceDlg* parent)
{
m_pParent = parent;
//??? m_pParent->SayHai();
}
=======================================================================
The following code compile no problem. however, when i try to uncomment out

m_pParent->SayHai() in CPicture constructor, i get the following error:

D:\Documents and Settings\Lim Ming Wee's PC\Desktop\Face\Picture.cpp(20) : error C2027: use of undefined type 'CFaceDlg'
d:\documents and settings\lim ming wee's pc\desktop\face\picture.h(12) : see declaration of 'CFaceDlg'
D:\Documents and Settings\Lim Ming Wee's PC\Desktop\Face\Picture.cpp(20) : error C2227: left of '->SayHai' must point to class/struct/union
Error executing cl.exe.

can anyone tell me how to solve this problem?

thank you.

regards
yccheok



GeneralRe: compilation problem (use of undefined type 'CFaceDlg') while using class keyword to do forward declaration Pin
Ken Mazaika1-Jun-03 7:11
Ken Mazaika1-Jun-03 7:11 
GeneralRe: compilation problem (use of undefined type 'CFaceDlg') while using class keyword to do forward declaration Pin
Dominik Reichl1-Jun-03 9:35
Dominik Reichl1-Jun-03 9:35 
GeneralCToolbar - LoadBitmap method Pin
Florin Ochiana1-Jun-03 4:01
Florin Ochiana1-Jun-03 4:01 
GeneralAbout Muti Thread, who can tell me what's wrong, thanks Pin
cjzdq31-May-03 23:38
cjzdq31-May-03 23:38 
GeneralRe: About Muti Thread, who can tell me what's wrong, thanks Pin
geo_m1-Jun-03 0:11
geo_m1-Jun-03 0:11 
GeneralRe: About Muti Thread, who can tell me what's wrong, thanks Pin
cjzdq1-Jun-03 0:38
cjzdq1-Jun-03 0:38 
GeneralRe: About Muti Thread, who can tell me what's wrong, thanks Pin
geo_m1-Jun-03 0:58
geo_m1-Jun-03 0:58 
GeneralRe: About Muti Thread, who can tell me what's wrong, thanks Pin
valikac1-Jun-03 6:22
valikac1-Jun-03 6:22 
GeneralRe: About Muti Thread, who can tell me what's wrong, thanks Pin
cjzdq2-Jun-03 1:09
cjzdq2-Jun-03 1:09 
GeneralRe: About Muti Thread, who can tell me what's wrong, thanks Pin
cjzdq2-Jun-03 1:14
cjzdq2-Jun-03 1:14 
GeneralI want to draw on a control,but the Dialog app will draw it automatic! Pin
white jungle31-May-03 20:10
white jungle31-May-03 20:10 
GeneralRe: I want to draw on a control,but the Dialog app will draw it automatic! Pin
Ted Ferenc31-May-03 21:42
Ted Ferenc31-May-03 21:42 
GeneralRe: I want to draw on a control,but the Dialog app will draw it automatic! Pin
white jungle31-May-03 23:41
white jungle31-May-03 23:41 
GeneralRe: I want to draw on a control,but the Dialog app will draw it automatic! Pin
Ted Ferenc1-Jun-03 1:31
Ted Ferenc1-Jun-03 1:31 
GeneralRe: I want to draw on a control,but the Dialog app will draw it automatic! Pin
white jungle1-Jun-03 3:18
white jungle1-Jun-03 3:18 
GeneralInternet Connection Availibility Pin
Alex Korchemniy31-May-03 17:46
Alex Korchemniy31-May-03 17:46 
GeneralRe: Internet Connection Availibility Pin
Jason Henderson31-May-03 19:30
Jason Henderson31-May-03 19:30 

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.