Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionError with libraries? Pin
satcat27-Mar-04 9:12
satcat27-Mar-04 9:12 
AnswerRe: Error with libraries? Pin
Heywood Jablome27-Mar-04 18:39
Heywood Jablome27-Mar-04 18:39 
GeneralRe: Error with libraries? Pin
satcat28-Mar-04 1:49
satcat28-Mar-04 1:49 
AnswerRe: Error with libraries? Pin
Ryan Binns28-Mar-04 17:20
Ryan Binns28-Mar-04 17:20 
QuestionHow to make button ,a default button at Run Time Pin
Touseef Afzal27-Mar-04 9:08
Touseef Afzal27-Mar-04 9:08 
AnswerRe: How to make button ,a default button at Run Time Pin
Neville Franks27-Mar-04 9:55
Neville Franks27-Mar-04 9:55 
GeneralRe: How to make button ,a default button at Run Time Pin
Steve S29-Mar-04 0:47
Steve S29-Mar-04 0:47 
GeneralInteresting #include Issue Pin
eoge27-Mar-04 8:14
eoge27-Mar-04 8:14 
OK, say I have two classes: class A and class B and I need both classes to be able to refer to each other. In class A I have #include "b.h" and in class B I have #include "a.h".

In each file the #include statements are within a #ifndef block like so

#ifndef _A_H

#define _A_H

#include "b.h"

class A

{

.
.
.

};

#endif

to prevent each class being redefined.

But... this throws compilation errors! For example, in class B it says class A is not defined. I feel it's a prob with the #ifndef stuff I've got going on there. Some of you smart guys must know a better way to do this and one with which I will not get these feckin' errors. Any ideas? Any help much appreciated! Thanks.

Eoge
Dublin, Ireland
GeneralRe: Interesting #include Issue Pin
Neville Franks27-Mar-04 9:47
Neville Franks27-Mar-04 9:47 
GeneralRe: Interesting #include Issue Pin
27-Mar-04 10:28
suss27-Mar-04 10:28 
GeneralRe: Interesting #include Issue Pin
Gary R. Wheeler28-Mar-04 14:05
Gary R. Wheeler28-Mar-04 14:05 
GeneralRe: Interesting #include Issue Pin
Prakash Nadar27-Mar-04 13:51
Prakash Nadar27-Mar-04 13:51 
GeneralSuppress return and escape in a dlg Pin
dolph_loe27-Mar-04 7:01
dolph_loe27-Mar-04 7:01 
GeneralRe: Suppress return and escape in a dlg Pin
Rob Manderson27-Mar-04 7:40
protectorRob Manderson27-Mar-04 7:40 
GeneralRe: Suppress return and escape in a dlg Pin
Michael Dunn27-Mar-04 7:57
sitebuilderMichael Dunn27-Mar-04 7:57 
GeneralRe: Suppress return and escape in a dlg Pin
Antony M Kancidrowski29-Mar-04 11:52
Antony M Kancidrowski29-Mar-04 11:52 
GeneralDifference Between CListCtrl and CListView Pin
laiju27-Mar-04 6:13
laiju27-Mar-04 6:13 
GeneralRe: Difference Between CListCtrl and CListView Pin
ian mariano27-Mar-04 6:42
ian mariano27-Mar-04 6:42 
GeneralRe: Difference Between CListCtrl and CListView Pin
laiju27-Mar-04 11:32
laiju27-Mar-04 11:32 
GeneralRe: Difference Between CListCtrl and CListView Pin
Gary R. Wheeler28-Mar-04 13:43
Gary R. Wheeler28-Mar-04 13:43 
GeneralGet The Frame Object Pin
ali khalilvand27-Mar-04 4:57
ali khalilvand27-Mar-04 4:57 
GeneralRe: Get The Frame Object Pin
Prakash Nadar27-Mar-04 6:09
Prakash Nadar27-Mar-04 6:09 
GeneralSetting the cursor Pin
dolph_loe27-Mar-04 3:04
dolph_loe27-Mar-04 3:04 
GeneralRe: Setting the cursor Pin
Branislav27-Mar-04 19:27
Branislav27-Mar-04 19:27 
GeneralRe: Setting the cursor Pin
dolph_loe27-Mar-04 23:22
dolph_loe27-Mar-04 23:22 

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.