Click here to Skip to main content
15,300,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionError with libraries? Pin
satcat27-Mar-04 9:12
Membersatcat27-Mar-04 9:12 
AnswerRe: Error with libraries? Pin
Heywood Jablome27-Mar-04 18:39
MemberHeywood Jablome27-Mar-04 18:39 
GeneralRe: Error with libraries? Pin
satcat28-Mar-04 1:49
Membersatcat28-Mar-04 1:49 
AnswerRe: Error with libraries? Pin
Ryan Binns28-Mar-04 17:20
MemberRyan Binns28-Mar-04 17:20 
QuestionHow to make button ,a default button at Run Time Pin
Touseef Afzal27-Mar-04 9:08
MemberTouseef Afzal27-Mar-04 9:08 
AnswerRe: How to make button ,a default button at Run Time Pin
Neville Franks27-Mar-04 9:55
MemberNeville Franks27-Mar-04 9:55 
GeneralRe: How to make button ,a default button at Run Time Pin
Steve S29-Mar-04 0:47
MemberSteve S29-Mar-04 0:47 
GeneralInteresting #include Issue Pin
eoge27-Mar-04 8:14
Membereoge27-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
MemberNeville 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
MemberGary R. Wheeler28-Mar-04 14:05 
GeneralRe: Interesting #include Issue Pin
Prakash Nadar27-Mar-04 13:51
MemberPrakash Nadar27-Mar-04 13:51 
GeneralSuppress return and escape in a dlg Pin
dolph_loe27-Mar-04 7:01
Memberdolph_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
MemberAntony M Kancidrowski29-Mar-04 11:52 
GeneralDifference Between CListCtrl and CListView Pin
laiju27-Mar-04 6:13
Memberlaiju27-Mar-04 6:13 
GeneralRe: Difference Between CListCtrl and CListView Pin
ian mariano27-Mar-04 6:42
Memberian mariano27-Mar-04 6:42 
GeneralRe: Difference Between CListCtrl and CListView Pin
laiju27-Mar-04 11:32
Memberlaiju27-Mar-04 11:32 
GeneralRe: Difference Between CListCtrl and CListView Pin
Gary R. Wheeler28-Mar-04 13:43
MemberGary R. Wheeler28-Mar-04 13:43 
GeneralGet The Frame Object Pin
ali khalilvand27-Mar-04 4:57
Memberali khalilvand27-Mar-04 4:57 
GeneralRe: Get The Frame Object Pin
Prakash Nadar27-Mar-04 6:09
MemberPrakash Nadar27-Mar-04 6:09 
GeneralSetting the cursor Pin
dolph_loe27-Mar-04 3:04
Memberdolph_loe27-Mar-04 3:04 
GeneralRe: Setting the cursor Pin
Branislav27-Mar-04 19:27
MemberBranislav27-Mar-04 19:27 
GeneralRe: Setting the cursor Pin
dolph_loe27-Mar-04 23:22
Memberdolph_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.