Click here to Skip to main content
16,005,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ONMESSAGE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Paul M Watt6-Nov-02 5:10
mentorPaul M Watt6-Nov-02 5:10 
GeneralVoice communication Pin
Saad Sarmad5-Nov-02 21:18
sussSaad Sarmad5-Nov-02 21:18 
GeneralRe: Voice communication Pin
Simon Brown5-Nov-02 22:31
Simon Brown5-Nov-02 22:31 
GeneralRe: Voice communication Pin
Anonymous5-Nov-02 23:24
Anonymous5-Nov-02 23:24 
GeneralRe: Voice communication Pin
benjymous5-Nov-02 23:28
benjymous5-Nov-02 23:28 
Generalerror: #include nesting level is 363 deep Pin
zecodela5-Nov-02 20:38
zecodela5-Nov-02 20:38 
GeneralRe: error: #include nesting level is 363 deep Pin
zecodela5-Nov-02 20:39
zecodela5-Nov-02 20:39 
GeneralRe: error: #include nesting level is 363 deep Pin
Christian Graus5-Nov-02 20:52
protectorChristian Graus5-Nov-02 20:52 
Well, you include A, it includes B, it includes A, it includes B....

This sort of stuff messes with your build times as well. Do this:


a.h:

class b{};

class a
{
...

a.cpp:

#include "stdafx.h" // always at the top
@include "b.h"

and vice versa. You're telling the compiler that b is a class, it can worry about the rest later - this works because all you're storing is a pointer, it does not need to know any details about it until it gets to the implimentation ( the .cpp file)




Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002

During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
GeneralRe: error: #include nesting level is 363 deep Pin
zecodela5-Nov-02 21:53
zecodela5-Nov-02 21:53 
GeneralRe: error: #include nesting level is 363 deep Pin
benjymous5-Nov-02 23:31
benjymous5-Nov-02 23:31 
GeneralRe: error: #include nesting level is 363 deep Pin
JT Anderson6-Nov-02 10:59
JT Anderson6-Nov-02 10:59 
GeneralRe: error: #include nesting level is 363 deep Pin
Christian Graus6-Nov-02 11:05
protectorChristian Graus6-Nov-02 11:05 
GeneralRe: error: #include nesting level is 363 deep Pin
zecodela6-Nov-02 17:23
zecodela6-Nov-02 17:23 
GeneralRe: error: #include nesting level is 363 deep Pin
KarstenK5-Nov-02 21:00
mveKarstenK5-Nov-02 21:00 
GeneralRe: error: #include nesting level is 363 deep Pin
zecodela5-Nov-02 22:00
zecodela5-Nov-02 22:00 
Generalhandle list ctrl wm_vscroll Pin
Steve L.5-Nov-02 20:29
Steve L.5-Nov-02 20:29 
Generalhelp: adding event handler to treeview Pin
5-Nov-02 18:11
suss5-Nov-02 18:11 
GeneralExponential Operator Pin
Cpudood5-Nov-02 18:00
Cpudood5-Nov-02 18:00 
GeneralRe: Exponential Operator Pin
Paul M Watt5-Nov-02 18:35
mentorPaul M Watt5-Nov-02 18:35 
QuestionHow to get app's directory? Pin
IGx895-Nov-02 15:49
IGx895-Nov-02 15:49 
AnswerRe: How to get app's directory? Pin
xipeng5-Nov-02 16:07
xipeng5-Nov-02 16:07 
GeneralRe: How to get app's directory? Pin
IGx895-Nov-02 16:15
IGx895-Nov-02 16:15 
AnswerRe: How to get app's directory? Pin
Anonymous6-Nov-02 0:41
Anonymous6-Nov-02 0:41 
QuestionLogonUser? Pin
imran_rafique5-Nov-02 15:49
imran_rafique5-Nov-02 15:49 
AnswerRe: LogonUser? Pin
ian mariano5-Nov-02 19:19
ian mariano5-Nov-02 19:19 

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.