Click here to Skip to main content
15,924,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Interdependent classes Pin
Neville Franks16-Mar-03 9:19
Neville Franks16-Mar-03 9:19 
GeneralRe: Interdependent classes Pin
Jambolo16-Mar-03 14:07
Jambolo16-Mar-03 14:07 
GeneralUrgent! File I/O problem Pin
williamking16-Mar-03 7:37
williamking16-Mar-03 7:37 
GeneralICM and non-sRGB color spaces Pin
Jonathan Gilligan16-Mar-03 7:07
Jonathan Gilligan16-Mar-03 7:07 
GeneralRemove BOLD FONT in all caption of control??? :( Pin
_skidrow_vn_16-Mar-03 7:04
_skidrow_vn_16-Mar-03 7:04 
GeneralRe: Remove BOLD FONT in all caption of control??? :( Pin
Christian Graus16-Mar-03 9:47
protectorChristian Graus16-Mar-03 9:47 
Generalmodless dialog Pin
xstaci16-Mar-03 6:28
xstaci16-Mar-03 6:28 
GeneralRe: modless dialog Pin
Michael Dunn16-Mar-03 7:35
sitebuilderMichael Dunn16-Mar-03 7:35 
GeneralRe: modless dialog Pin
User 665816-Mar-03 7:44
User 665816-Mar-03 7:44 
GeneralRe: modless dialog Pin
xstaci16-Mar-03 7:57
xstaci16-Mar-03 7:57 
GeneralRe: modless dialog Pin
User 665816-Mar-03 8:07
User 665816-Mar-03 8:07 
GeneralRe: modless dialog Pin
xstaci16-Mar-03 9:29
xstaci16-Mar-03 9:29 
GeneralRe: modless dialog Pin
User 665816-Mar-03 10:27
User 665816-Mar-03 10:27 
Generalremove the close, maximize and minimize buttons from a dialog Pin
d_kilshtein16-Mar-03 5:58
d_kilshtein16-Mar-03 5:58 
GeneralRe: remove the close, maximize and minimize buttons from a dialog Pin
Abbas_Riazi16-Mar-03 7:01
professionalAbbas_Riazi16-Mar-03 7:01 
GeneralRe: remove the close, maximize and minimize buttons from a dialog Pin
Florin Ochiana16-Mar-03 11:36
Florin Ochiana16-Mar-03 11:36 
GeneralWindow Class name Pin
John-theKing16-Mar-03 5:06
John-theKing16-Mar-03 5:06 
GeneralRe: Window Class name Pin
João Paulo Figueira16-Mar-03 5:21
professionalJoão Paulo Figueira16-Mar-03 5:21 
Questionhow can i know if the sheet contain chart?? Pin
pnpfriend16-Mar-03 4:59
pnpfriend16-Mar-03 4:59 
GeneralA prog to say which files are in use... Pin
zamazula16-Mar-03 4:56
zamazula16-Mar-03 4:56 
GeneralRe: A prog to say which files are in use... Pin
Ted Ferenc16-Mar-03 7:50
Ted Ferenc16-Mar-03 7:50 

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.