Click here to Skip to main content
15,922,407 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to make an app that runs on Windows 95, 98, ME, NT, 2000 and XP Pin
Joan M16-Mar-03 21:58
professionalJoan M16-Mar-03 21:58 
GeneralTransparent background for a Tree Ctrl Pin
Florin Ochiana16-Mar-03 12:04
Florin Ochiana16-Mar-03 12:04 
GeneralUrgent Checkbox help required Pin
phaedrus16-Mar-03 11:23
phaedrus16-Mar-03 11:23 
GeneralRe: Urgent Checkbox help required Pin
Florin Ochiana16-Mar-03 12:02
Florin Ochiana16-Mar-03 12:02 
GeneralRe: Urgent Checkbox help required Pin
Michael Dunn16-Mar-03 12:35
sitebuilderMichael Dunn16-Mar-03 12:35 
GeneralRe: Urgent Checkbox help required Pin
phaedrus16-Mar-03 15:30
phaedrus16-Mar-03 15:30 
GeneralAccelerator manager Pin
yooyo3d16-Mar-03 11:07
yooyo3d16-Mar-03 11:07 
GeneralDrag & Drop with IDragSourceHelper Pin
Hiusing16-Mar-03 10:02
Hiusing16-Mar-03 10:02 
GeneralTranslate VB -> C++ Pin
mduarte16-Mar-03 9:29
mduarte16-Mar-03 9:29 
GeneralRe: Translate VB -> C++ Pin
Christian Graus16-Mar-03 9:40
protectorChristian Graus16-Mar-03 9:40 
QuestionFind a substring in strings of COMBO? Pin
_skidrow_vn_16-Mar-03 9:22
_skidrow_vn_16-Mar-03 9:22 
AnswerRe: Find a substring in strings of COMBO? Pin
Dave Bryant16-Mar-03 9:26
Dave Bryant16-Mar-03 9:26 
GeneralProblems with Htmlhelp API library Pin
trimtrom16-Mar-03 9:00
trimtrom16-Mar-03 9:00 
GeneralRe: Problems with Htmlhelp API library Pin
brandon187916-Mar-03 9:07
brandon187916-Mar-03 9:07 
GeneralRe: Problems with Htmlhelp API library Pin
trimtrom16-Mar-03 9:15
trimtrom16-Mar-03 9:15 
GeneralRe: Problems with Htmlhelp API library Pin
Neville Franks16-Mar-03 9:13
Neville Franks16-Mar-03 9:13 
GeneralRe: Problems with Htmlhelp API library Pin
trimtrom16-Mar-03 9:26
trimtrom16-Mar-03 9:26 
GeneralRe: Problems with Htmlhelp API library Pin
Neville Franks16-Mar-03 9:30
Neville Franks16-Mar-03 9:30 
GeneralRe: Problems with Htmlhelp API library Pin
PJ Arends16-Mar-03 14:46
professionalPJ Arends16-Mar-03 14:46 
GeneralRe: Problems with Htmlhelp API library Pin
Dave Bryant16-Mar-03 9:13
Dave Bryant16-Mar-03 9:13 
GeneralRe: Problems with Htmlhelp API library Pin
Neville Franks16-Mar-03 9:20
Neville Franks16-Mar-03 9:20 
GeneralRe: Problems with Htmlhelp API library Pin
Dave Bryant16-Mar-03 9:22
Dave Bryant16-Mar-03 9:22 
GeneralInterdependent classes Pin
brandon187916-Mar-03 8:54
brandon187916-Mar-03 8:54 
GeneralRe: Interdependent classes Pin
Anonymous16-Mar-03 9:16
Anonymous16-Mar-03 9:16 
You need a forward declaration of one of the classes that tells the compiler that the class exists, but you'll define it later:

class A;

class B
{
private:
A *m_Ptr;
};

It is wise to always put a #ifdef round every header file, but personally I would only include a header file where you need - needlessly including every single header file will just create a big spaghetti mess. Keep it clean and include as much as you can in the source files, and whatever is needed in the header file to compile the class. Otherwise as soon as you start changing one header everything falls apart
GeneralRe: Interdependent classes Pin
Dave Bryant16-Mar-03 9:17
Dave Bryant16-Mar-03 9:17 

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.