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

C / C++ / MFC

 
AnswerRe: what is wrong? Pin
Michael Dunn1-Feb-02 16:16
sitebuilderMichael Dunn1-Feb-02 16:16 
GeneralRe: what is wrong? Pin
Le centriste4-Feb-02 4:20
Le centriste4-Feb-02 4:20 
GeneralList Control Space Bug Pin
Swinefeaster1-Feb-02 14:10
Swinefeaster1-Feb-02 14:10 
QuestionClass prototype? Pin
1-Feb-02 14:05
suss1-Feb-02 14:05 
AnswerRe: Class prototype? Pin
Swinefeaster1-Feb-02 14:14
Swinefeaster1-Feb-02 14:14 
GeneralRe: Class prototype? Pin
Tim Smith1-Feb-02 14:40
Tim Smith1-Feb-02 14:40 
GeneralRe: Class prototype? Pin
Tantalus1-Feb-02 16:30
Tantalus1-Feb-02 16:30 
GeneralRe: Class prototype? Pin
Swinefeaster1-Feb-02 16:37
Swinefeaster1-Feb-02 16:37 
That doesn't make any sense.

in the header file (for example):

class CString;

class CStringUser
{
public:
CStringUser(void);

private:
CString* m_Member;
};

In the cpp file:

#include "StdAfx.h"
#include "CString.h"

CStringUser::CStringUser(void)
{
m_Member = new CString;
}

...but of course that's assuming "CString" is the class you want to forward declare.

Cheers,

swinefeaster



Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
GeneralSort of Serialization Pin
1-Feb-02 14:00
suss1-Feb-02 14:00 
GeneralRe: Sort of Serialization Pin
Swinefeaster1-Feb-02 14:03
Swinefeaster1-Feb-02 14:03 
GeneralRe: Sort of Serialization Pin
1-Feb-02 14:44
suss1-Feb-02 14:44 
GeneralRe: Sort of Serialization Pin
Matt Gullett1-Feb-02 14:52
Matt Gullett1-Feb-02 14:52 
GeneralCMutex Pin
Cathy1-Feb-02 13:55
Cathy1-Feb-02 13:55 
GeneralRe: CMutex Pin
Rick York1-Feb-02 18:03
mveRick York1-Feb-02 18:03 
GeneralRe: CMutex Pin
Cathy1-Feb-02 20:39
Cathy1-Feb-02 20:39 
GeneralRe: CMutex Pin
Rick York1-Feb-02 21:08
mveRick York1-Feb-02 21:08 
GeneralRe: CMutex Pin
Cathy2-Feb-02 5:13
Cathy2-Feb-02 5:13 
GeneralWTF Pin
Stephen Caldwell1-Feb-02 13:02
Stephen Caldwell1-Feb-02 13:02 
GeneralRe: WTF Pin
Swinefeaster1-Feb-02 14:01
Swinefeaster1-Feb-02 14:01 
GeneralRe: WTF Pin
Sprudling1-Feb-02 14:03
Sprudling1-Feb-02 14:03 
GeneralRe: WTF Pin
Stephen Caldwell1-Feb-02 14:27
Stephen Caldwell1-Feb-02 14:27 
GeneralRe: WTF Pin
Tim Smith1-Feb-02 14:32
Tim Smith1-Feb-02 14:32 
GeneralCapturing the contents of another window... Pin
Peter Weyzen1-Feb-02 12:37
Peter Weyzen1-Feb-02 12:37 
GeneralRe: Capturing the contents of another window... Pin
Stephen Caldwell1-Feb-02 13:22
Stephen Caldwell1-Feb-02 13:22 
Generalmany functions to just one Pin
Steve L.1-Feb-02 11:34
Steve L.1-Feb-02 11:34 

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.