Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: USB Port Pin
David Crow4-Aug-08 3:03
David Crow4-Aug-08 3:03 
AnswerRe: USB Port Pin
Hamid_RT2-Aug-08 8:49
Hamid_RT2-Aug-08 8:49 
GeneralRe: USB Port Pin
NewVC++3-Aug-08 18:41
NewVC++3-Aug-08 18:41 
QuestionWS_EX_RTLREADING Pin
iayd2-Aug-08 1:22
iayd2-Aug-08 1:22 
QuestionRe: WS_EX_RTLREADING Pin
David Crow2-Aug-08 5:17
David Crow2-Aug-08 5:17 
AnswerRe: WS_EX_RTLREADING Pin
Hamid_RT2-Aug-08 8:51
Hamid_RT2-Aug-08 8:51 
AnswerRe: WS_EX_RTLREADING Pin
Jijo.Raj3-Aug-08 23:56
Jijo.Raj3-Aug-08 23:56 
QuestionMy problem with 2 dialog Pin
keyvan_jaferzade2-Aug-08 0:35
keyvan_jaferzade2-Aug-08 0:35 
This is my code for first Dialog



#if !defined(AFX_DIALOG1_H__F50AB9B4_5FA3_4068_843C_01A10ED22766__INCLUDED_)
#define AFX_DIALOG1_H__F50AB9B4_5FA3_4068_843C_01A10ED22766__INCLUDED_
#include "dialog2.h" // Added by ClassView

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// dialog1.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// dialog1 dialog

class dialog1 : public CDialog
{
// Construction
public:
dialog2 d2;
dialog1(CWnd* pParent = NULL); // standard constructor


// Dialog Data
//{{AFX_DATA(dialog1)
enum { IDD = IDD_DIALOG1 };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA


// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(dialog1)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL

// Implementation
protected:

// Generated message map functions
//{{AFX_MSG(dialog1)
// NOTE: the ClassWizard will add member functions here
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DIALOG1_H__F50AB9B4_5FA3_4068_843C_01A10ED22766__INCLUDED_)



//**************************************************************************


And second dialog Code is

#if !defined(AFX_DIALOG2_H__B49F8072_EB87_4558_8CE9_E83A7852E553__INCLUDED_)
#define AFX_DIALOG2_H__B49F8072_EB87_4558_8CE9_E83A7852E553__INCLUDED_

#include "dialog1.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// dialog2.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// dialog2 dialog

class dialog2 : public CDialog
{
// Construction
public:
dialog1 d1;
dialog2(CWnd* pParent = NULL); // standard constructor


// Dialog Data
//{{AFX_DATA(dialog2)
enum { IDD = IDD_DIALOG2 };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA


// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(dialog2)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL

// Implementation
protected:

// Generated message map functions
//{{AFX_MSG(dialog2)
// NOTE: the ClassWizard will add member functions here
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DIALOG2_H__B49F8072_EB87_4558_8CE9_E83A7852E553__INCLUDED_)




Error is
Compiling...
dialog2.cpp
c:\documents and settings\kone\desktop\test_dialog\dialog1.h(19) : error C2146: syntax error : missing ';' before identifier 'd2'
c:\documents and settings\kone\desktop\test_dialog\dialog1.h(19) : error C2501: 'dialog2' : missing storage-class or type specifiers
c:\documents and settings\kone\desktop\test_dialog\dialog1.h(19) : error C2501: 'd2' : missing storage-class or type specifiers
dialog1.cpp
c:\documents and settings\kone\desktop\test_dialog\dialog2.h(18) : error C2146: syntax error : missing ';' before identifier 'd1'
c:\documents and settings\kone\desktop\test_dialog\dialog2.h(18) : error C2501: 'dialog1' : missing storage-class or type specifiers
c:\documents and settings\kone\desktop\test_dialog\dialog2.h(18) : error C2501: 'd1' : missing storage-class or type specifiers
Generating Code...
Error executing cl.exe.

test_dialog.exe - 6 error(s), 0 warning(s)
QuestionRe: My problem with 2 dialog Pin
David Crow2-Aug-08 5:19
David Crow2-Aug-08 5:19 
AnswerRe: My problem with 2 dialog Pin
keyvan_jaferzade2-Aug-08 8:32
keyvan_jaferzade2-Aug-08 8:32 
GeneralRe: My problem with 2 dialog Pin
David Crow2-Aug-08 9:06
David Crow2-Aug-08 9:06 
AnswerRe: My problem with 2 dialog Pin
Mark Salsbery2-Aug-08 8:48
Mark Salsbery2-Aug-08 8:48 
GeneralRe: My problem with 2 dialog Pin
keyvan_jaferzade2-Aug-08 10:46
keyvan_jaferzade2-Aug-08 10:46 
GeneralRe: My problem with 2 dialog Pin
Mark Salsbery2-Aug-08 10:54
Mark Salsbery2-Aug-08 10:54 
GeneralRe: My problem with 2 dialog Pin
keyvan_jaferzade2-Aug-08 11:02
keyvan_jaferzade2-Aug-08 11:02 
QuestionFormView SDI App - Resolution Pin
Member 4431372-Aug-08 0:31
Member 4431372-Aug-08 0:31 
AnswerRe: FormView SDI App - Resolution Pin
Hamid_RT2-Aug-08 8:54
Hamid_RT2-Aug-08 8:54 
QuestionAdo AppendChunk() fucntion did not save data to oracle database. Pin
yklim2-Aug-08 0:09
yklim2-Aug-08 0:09 
AnswerRe: Ado AppendChunk() fucntion did not save data to oracle database. Pin
includeh102-Aug-08 14:32
includeh102-Aug-08 14:32 
QuestionLogOnUser fails on Win 2k Pin
sandeepkavade1-Aug-08 20:47
sandeepkavade1-Aug-08 20:47 
QuestionSpliting in SDI Aplcation!!! Pin
Le@rner1-Aug-08 20:20
Le@rner1-Aug-08 20:20 
AnswerRe: Spliting in SDI Aplcation!!! Pin
mirtu2-Aug-08 0:04
mirtu2-Aug-08 0:04 
GeneralRe: Spliting in SDI Aplcation!!! Pin
David Crow2-Aug-08 5:22
David Crow2-Aug-08 5:22 
QuestionMSADO1.5 problem with Vista Pin
Sakhalean1-Aug-08 19:24
Sakhalean1-Aug-08 19:24 
AnswerRe: MSADO1.5 problem with Vista Pin
Cedric Moonen1-Aug-08 21:44
Cedric Moonen1-Aug-08 21:44 

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.