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

C / C++ / MFC

 
GeneralRe: How to change the MFC icon Pin
David Crow8-May-03 7:32
David Crow8-May-03 7:32 
AnswerRe: How to change the MFC icon Pin
Hari Krishnan (Noida)8-May-03 17:35
Hari Krishnan (Noida)8-May-03 17:35 
GeneralRe: How to change the MFC icon Pin
JensB8-May-03 21:22
JensB8-May-03 21:22 
GeneralRe: How to change the MFC icon Pin
gmlnd9-May-03 6:02
gmlnd9-May-03 6:02 
Generaldetect data on a TCP socket Pin
peter ho8-May-03 6:34
peter ho8-May-03 6:34 
GeneralRe: detect data on a TCP socket Pin
valikac8-May-03 7:36
valikac8-May-03 7:36 
GeneralRe: detect data on a TCP socket Pin
Erik Juhl9-May-03 5:29
Erik Juhl9-May-03 5:29 
GeneralI need to declare a pointer to a class prior to defining the class. Pin
mistika8-May-03 6:32
mistika8-May-03 6:32 
Somebody can help me?
I need to declare a pointer to a class prior to defining the class.

I'm programming in Visual C++ 6, the code is something like this:

// header file A.h

class A : public CObject
{

....

}


// header file B.h

class __single_inheritance MyClass;

class B : public A
{
MyClass * m_pMyClass; // error C2027
.....

}


// header file C.h

class C : public Object
{

B * m_pBdata;
}

// header file MyClass.h

class MyClass : public C
{

.....

}

But, it doesn`t work, when I compile the code, Visual c++ give me the next error:
C2027: use of undefined type MyClass

Please, I need help,

Thanks a lot.Smile | :)


GeneralRe: I need to declare a pointer to a class prior to defining the class. Pin
Roger Allen8-May-03 6:43
Roger Allen8-May-03 6:43 
GeneralRe: I need to declare a pointer to a class prior to defining the class. Pin
David Crow8-May-03 7:12
David Crow8-May-03 7:12 
GeneralDisable F1 Help in BHO DLL Pin
ayousif8-May-03 5:17
ayousif8-May-03 5:17 
GeneralRe: Disable F1 Help in BHO DLL Pin
Joan M8-May-03 6:06
professionalJoan M8-May-03 6:06 
GeneralRe: Disable F1 Help in BHO DLL Pin
ayousif8-May-03 6:22
ayousif8-May-03 6:22 
GeneralDisable Visual Styles for an App Pin
ScottPrusinoski8-May-03 5:01
ScottPrusinoski8-May-03 5:01 
GeneralFinding the dimensions of a PNG File Pin
Real World8-May-03 4:42
Real World8-May-03 4:42 
GeneralRe: Finding the dimensions of a PNG File Pin
David Crow8-May-03 4:58
David Crow8-May-03 4:58 
GeneralRe: Finding the dimensions of a PNG File Pin
Real World8-May-03 7:24
Real World8-May-03 7:24 
GeneralRe: Finding the dimensions of a PNG File Pin
David Crow8-May-03 7:33
David Crow8-May-03 7:33 
GeneralRe: Finding the dimensions of a PNG File Pin
Real World8-May-03 7:40
Real World8-May-03 7:40 
GeneralRe: Finding the dimensions of a PNG File Pin
Real World8-May-03 7:56
Real World8-May-03 7:56 
GeneralRe: Finding the dimensions of a PNG File Pin
David Crow8-May-03 9:09
David Crow8-May-03 9:09 
GeneralRe: Finding the dimensions of a PNG File Pin
David Crow8-May-03 10:22
David Crow8-May-03 10:22 
GeneralI hate __int64! Pin
Simon Steele8-May-03 3:43
Simon Steele8-May-03 3:43 
GeneralRe: I hate __int64! Pin
David Crow8-May-03 4:08
David Crow8-May-03 4:08 
GeneralRe: I hate __int64! Pin
Len Holgate8-May-03 4:26
Len Holgate8-May-03 4:26 

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.