Click here to Skip to main content
16,018,797 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGlobalAddAtom function Pin
tom groezer23-May-07 0:41
tom groezer23-May-07 0:41 
AnswerRe: GlobalAddAtom function Pin
CPallini23-May-07 0:57
mveCPallini23-May-07 0:57 
QuestionPlease HELP!!! How do you create a dialog wizard inside a tab control?? [modified] Pin
dboogieman22-May-07 23:49
dboogieman22-May-07 23:49 
AnswerRe: Please HELP!!! How do you create a dialog wizard inside a tab control?? Pin
Joan M23-May-07 0:10
professionalJoan M23-May-07 0:10 
GeneralRe: Please HELP!!! How do you create a dialog wizard inside a tab control?? Pin
dboogieman23-May-07 0:37
dboogieman23-May-07 0:37 
GeneralRe: Please HELP!!! How do you create a dialog wizard inside a tab control?? Pin
Joan M23-May-07 0:45
professionalJoan M23-May-07 0:45 
QuestionHow to define each other class in self? Pin
hanlei000000000922-May-07 23:20
hanlei000000000922-May-07 23:20 
AnswerRe: How to define each other class in self? Pin
Sarath C22-May-07 23:49
Sarath C22-May-07 23:49 
Separating the class declarations and definitions to different files would help you to compile the project. Also you may need to make A m_a; in the class be as A* m_a;
a.h
--------
#ifndef CLASS_A
#define CLASS_A
class B;
class A
{
public:
B* p_b;
void fun();
};
#endif

a.cpp
-----
#include "stdafx.h"
#include "a.h"
#include "b.h"

void A::fun()
{
p_b->funB(); // error: can not find class B::funB
}
b.h
-----------------
#ifndef CLASS_B
#define CLASS_B

class A;
class B
{
public:
A* m_a;
void funB();
};
#endif

b.cpp
-------
#include "b.h"
void B::funB()
{
printf("funb");
}


HTH



-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin


QuestionKeep a DLL generated dialog on top Pin
fusion2344X22-May-07 22:57
fusion2344X22-May-07 22:57 
AnswerRe: Keep a DLL generated dialog on top Pin
Naveen23-May-07 1:41
Naveen23-May-07 1:41 
GeneralRe: Keep a DLL generated dialog on top Pin
fusion2344X23-May-07 5:18
fusion2344X23-May-07 5:18 
GeneralRe: Keep a DLL generated dialog on top [modified] Pin
Naveen23-May-07 14:10
Naveen23-May-07 14:10 
QuestionRe: Keep a DLL generated dialog on top Pin
David Crow23-May-07 4:04
David Crow23-May-07 4:04 
QuestionFolder Pin
josip cagalj22-May-07 21:34
josip cagalj22-May-07 21:34 
AnswerRe: Folder Pin
Hamid Taebi22-May-07 21:58
professionalHamid Taebi22-May-07 21:58 
Questionmenu change Pin
prithaa22-May-07 21:25
prithaa22-May-07 21:25 
AnswerRe: menu change Pin
Nelek22-May-07 23:28
protectorNelek22-May-07 23:28 
AnswerRe: menu change Pin
Anurag Gandhi23-May-07 0:06
professionalAnurag Gandhi23-May-07 0:06 
Question__loctotime_t function in Win32 Pin
bouli22-May-07 21:17
bouli22-May-07 21:17 
AnswerRe: __loctotime_t function in Win32 Pin
Hamid Taebi22-May-07 21:34
professionalHamid Taebi22-May-07 21:34 
AnswerRe: __loctotime_t function in Win32 Pin
_AnsHUMAN_ 22-May-07 22:43
_AnsHUMAN_ 22-May-07 22:43 
GeneralRe: __loctotime_t function in Win32 Pin
bouli22-May-07 22:46
bouli22-May-07 22:46 
QuestionRe: __loctotime_t function in Win32 Pin
David Crow23-May-07 4:11
David Crow23-May-07 4:11 
AnswerRe: __loctotime_t function in Win32 Pin
bouli23-May-07 4:13
bouli23-May-07 4:13 
QuestionSocket Connection problem in Windows XP System from VC++ Pin
ledallam22-May-07 21:14
ledallam22-May-07 21: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.