Click here to Skip to main content
15,921,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcascaded and tiled dialogs in SDI MFC applications Pin
annona28-Jan-03 21:19
annona28-Jan-03 21:19 
GeneralIcon in the status bar - like Yahoo messenger... Pin
Florin Ochiana28-Jan-03 21:02
Florin Ochiana28-Jan-03 21:02 
GeneralRe: Icon in the status bar - like Yahoo messenger... Pin
Rickard Andersson2028-Jan-03 21:40
Rickard Andersson2028-Jan-03 21:40 
GeneralRe: Icon in the status bar - like Yahoo messenger... Pin
Rickard Andersson2028-Jan-03 21:43
Rickard Andersson2028-Jan-03 21:43 
GeneralRe: Icon in the status bar - like Yahoo messenger... Pin
Florin Ochiana28-Jan-03 21:46
Florin Ochiana28-Jan-03 21:46 
GeneralA question about TransmitFile Pin
Kerry Chou28-Jan-03 20:51
Kerry Chou28-Jan-03 20:51 
GeneralRe: A question about TransmitFile Pin
Abbas_Riazi29-Jan-03 9:05
professionalAbbas_Riazi29-Jan-03 9:05 
Generaltwo or more classes with cross-reference Pin
Sergei Yevseyev28-Jan-03 20:47
Sergei Yevseyev28-Jan-03 20:47 
The problem:
I have, for e.g two classes A and B, and I need, that class A have a
pointer to an object of class B, when B have a a pointer to an instance of A
Each class has it's own .h and .cpp... The problem ih how to specify
the compiling and linkage of them (VS. NET)
I've decided to do this, as shown below, but under VC++ 7 it goes out with
error "A::ptr uses undefined class B" Frown | :( What I am doing wrong and how to fix this?
During reading MSDN, in some cases it is helpful for soving this is using the
static declaration, like static B *ptr, but I think it is a bad way...
//// A.h

class B;
#include "B.h"

class A {
public:
A();
~A();

B *ptr;

};

//// B.h

class A;
#include "A.h"

class B {
B();
~B();

A *ptr;
}
GeneralRe: two or more classes with cross-reference Pin
Joaquín M López Muñoz28-Jan-03 20:53
Joaquín M López Muñoz28-Jan-03 20:53 
GeneralRe: two or more classes with cross-reference Pin
Sergei Yevseyev28-Jan-03 21:12
Sergei Yevseyev28-Jan-03 21:12 
Questionget selected text from web page??? Pin
xxhimanshu28-Jan-03 20:18
xxhimanshu28-Jan-03 20:18 
AnswerRe: get selected text from web page??? Pin
jeremysay29-Jan-03 5:14
jeremysay29-Jan-03 5:14 
GeneralEmbedded Word Automation... Pin
Aswin Kumar28-Jan-03 20:09
Aswin Kumar28-Jan-03 20:09 
GeneralCOM and multithreading Pin
Shah Shehpori28-Jan-03 20:09
sussShah Shehpori28-Jan-03 20:09 
GeneralRe: COM and multithreading Pin
Hans Ruck29-Jan-03 2:22
Hans Ruck29-Jan-03 2:22 
General'CDocument::UpdateAllViews' : illegal call of non-static member function problem Pin
boon kian28-Jan-03 19:34
boon kian28-Jan-03 19:34 
GeneralRe: 'CDocument::UpdateAllViews' : illegal call of non-static member function problem Pin
trustno128-Jan-03 21:14
trustno128-Jan-03 21:14 
GeneralRe: 'CDocument::UpdateAllViews' : illegal call of non-static member function problem Pin
boon kian30-Jan-03 2:02
boon kian30-Jan-03 2:02 
Generalglobal mouse capture Pin
Member 10559028-Jan-03 18:16
Member 10559028-Jan-03 18:16 
GeneralRe: global mouse capture Pin
Moak28-Jan-03 20:11
Moak28-Jan-03 20:11 
GeneralRe: global mouse capture Pin
Member 10559028-Jan-03 20:34
Member 10559028-Jan-03 20:34 
GeneralRe: global mouse capture Pin
Joan M28-Jan-03 21:26
professionalJoan M28-Jan-03 21:26 
GeneralRe: global mouse capture Pin
Moak28-Jan-03 21:57
Moak28-Jan-03 21:57 
GeneralRe: global mouse capture Pin
Roger Allen29-Jan-03 1:10
Roger Allen29-Jan-03 1:10 
GeneralRe: global mouse capture Pin
Member 10559029-Jan-03 13:14
Member 10559029-Jan-03 13:14 

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.