Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
You've got a circular reference problem.

You can't forward reference a class object, but you can forward reference
a class object pointer, since the compiler knows what a pointer is.

Something like this should work...
// dialog1.h : header file
//

#pragma once

// forward declaration of dialog2 class
class dialog2;

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

class dialog1 : public CDialog
{
public:
   dialog2 *d2;

...

};

// dialog2.h : header file
//

#pragma once

#include "dialog1.h"

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

class dialog2 : public CDialog
{
public:
   dialog1 *d1;

...

};


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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 
GeneralRe: MSADO1.5 problem with Vista Pin
jeron12-Aug-08 5:05
jeron12-Aug-08 5:05 
GeneralRe: MSADO1.5 problem with Vista Pin
Cedric Moonen2-Aug-08 21:35
Cedric Moonen2-Aug-08 21:35 
QuestionTree Ctrl Pin
john56321-Aug-08 16:51
john56321-Aug-08 16:51 
AnswerRe: Tree Ctrl Pin
Varghese Paul M1-Aug-08 17:08
Varghese Paul M1-Aug-08 17:08 

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.