Click here to Skip to main content
15,891,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Just curious. Pin
codemunkeh27-Jul-07 16:14
codemunkeh27-Jul-07 16:14 
GeneralRe: Just curious. Pin
Paul Conrad27-Jul-07 19:40
professionalPaul Conrad27-Jul-07 19:40 
AnswerRe: Just curious. Pin
John R. Shaw28-Jul-07 0:22
John R. Shaw28-Jul-07 0:22 
GeneralRe: Just curious. Pin
codemunkeh28-Jul-07 13:44
codemunkeh28-Jul-07 13:44 
Questionforward deklaration Pin
zqueezy27-Jul-07 11:12
zqueezy27-Jul-07 11:12 
AnswerRe: forward deklaration Pin
DevMentor.org27-Jul-07 11:18
DevMentor.org27-Jul-07 11:18 
GeneralRe: forward deklaration Pin
zqueezy27-Jul-07 11:21
zqueezy27-Jul-07 11:21 
AnswerRe: forward deklaration Pin
Bartosz Bien27-Jul-07 11:19
Bartosz Bien27-Jul-07 11:19 
Hello,
<br />
// A.h<br />
#include "B.h"<br />
class A<br />
{<br />
public:<br />
    B m_BClass;<br />
<br />
    void SayHelloToMyLittleFriend() {}<br />
};<br />
<br />
// B.h<br />
class A;<br />
class B<br />
{<br />
public:<br />
    A* m_pAClass; // <-- no error here anymore, A is declared (but not defined)<br />
<br />
    void LetsRock();<br />
};<br />
<br />
// B.cpp<br />
#include "B.h"<br />
#include "A.h"<br />
<br />
void B::LetsRock()<br />
{<br />
    // TODO: do something crazy with m_pAClass, like calling its member function.<br />
<br />
    m_pAClass->SayHelloToMyLittleFriend();<br />
}<br />



GeneralRe: forward deklaration Pin
DevMentor.org27-Jul-07 11:24
DevMentor.org27-Jul-07 11:24 
GeneralRe: forward deklaration Pin
zqueezy27-Jul-07 11:26
zqueezy27-Jul-07 11:26 
GeneralRe: forward deklaration Pin
DevMentor.org27-Jul-07 11:38
DevMentor.org27-Jul-07 11:38 
QuestionDrawing image on non client area in windows vista aero glass view using GDI+ in MFC Pin
pankaj garg iitd27-Jul-07 9:46
pankaj garg iitd27-Jul-07 9:46 
QuestionIcon & bitmap ID's for "New folder" "Delete" Rename" etc Pin
Hemant kulkarni27-Jul-07 8:59
Hemant kulkarni27-Jul-07 8:59 
AnswerRe: Icon & bitmap ID's for "New folder" "Delete" Rename" etc Pin
zqueezy27-Jul-07 11:17
zqueezy27-Jul-07 11:17 
GeneralRe: Icon & bitmap ID's for "New folder" "Delete" Rename" etc Pin
codemunkeh27-Jul-07 16:16
codemunkeh27-Jul-07 16:16 
AnswerRe: Icon & bitmap ID's for "New folder" "Delete" Rename" etc Pin
Mark Salsbery27-Jul-07 12:16
Mark Salsbery27-Jul-07 12:16 
QuestionUuidCreate return status Pin
bob1697227-Jul-07 7:12
bob1697227-Jul-07 7:12 
AnswerRe: UuidCreate return status Pin
DevMentor.org27-Jul-07 8:10
DevMentor.org27-Jul-07 8:10 
AnswerRe: UuidCreate return status Pin
Mark Salsbery27-Jul-07 8:52
Mark Salsbery27-Jul-07 8:52 
AnswerRe: UuidCreate return status Pin
Michael Dunn27-Jul-07 10:00
sitebuilderMichael Dunn27-Jul-07 10:00 
QuestionAbout Key board Message [modified] Pin
Max++27-Jul-07 6:27
Max++27-Jul-07 6:27 
AnswerRe: About Key board Message Pin
Eytukan27-Jul-07 7:05
Eytukan27-Jul-07 7:05 
GeneralRe: About Key board Message Pin
Max++27-Jul-07 7:19
Max++27-Jul-07 7:19 
GeneralRe: About Key board Message Pin
codemunkeh27-Jul-07 16:20
codemunkeh27-Jul-07 16:20 
QuestionWifi And Winsock2 Pin
djin9427-Jul-07 4:46
djin9427-Jul-07 4:46 

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.