Click here to Skip to main content
15,926,703 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem in displaying Balloon tool tip in VC++6.0 MFC??? Pin
gloriousgopi19-Jul-07 1:46
gloriousgopi19-Jul-07 1:46 
QuestionDisplay bitmap stored in array on simple button Pin
Ravindra_Joshi18-Jul-07 23:50
Ravindra_Joshi18-Jul-07 23:50 
AnswerRe: Display bitmap stored in array on simple button Pin
John R. Shaw19-Jul-07 1:29
John R. Shaw19-Jul-07 1:29 
AnswerRe: Display bitmap stored in array on simple button Pin
Rage19-Jul-07 1:35
professionalRage19-Jul-07 1:35 
GeneralDisplay bitmap stored in array on simple button Pin
Ravindra_Joshi19-Jul-07 2:08
Ravindra_Joshi19-Jul-07 2:08 
AnswerRe: Display bitmap stored in array on simple button Pin
Mark Salsbery19-Jul-07 5:13
Mark Salsbery19-Jul-07 5:13 
QuestionHow to include Header file in.... Pin
Electronic7518-Jul-07 23:48
Electronic7518-Jul-07 23:48 
AnswerRe: How to include Header file in.... Pin
Matthew Faithfull19-Jul-07 0:09
Matthew Faithfull19-Jul-07 0:09 
I suggest that you use a combination of 2 approaches depending on the types, classes or non class types, you're defining.

1. A third header file e.g. BaseTypes.h which contains the definitions out of MyData.h and TypeDefs.h that don't depend on anything else. You can include this file from both MyData.h and TypeDefs.h and this should remove some of your problems. If you still find both header files are dependent on one another you might want to actaully draw out a dependency tree to work out how to further divide your files.

2. Use forward delclaration to introduce names to the compiler before you define them. Remember that you can only use the forward declared name in places where the size of what it refers to is not an issue for the compiler like declaring a pointer.

//Forward declaration
class CMyAwkwardClass;

//Declare a class that uses CMyAwkward even though we don't know what it is yet
class CSomeOtherClass
{
  private:

  CMyAwkwardClass* m_pAwkward;
};

Careful use of this sort of thing may get you out of a hole. Smile | :)


Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: How to include Header file in.... Pin
Electronic7519-Jul-07 1:08
Electronic7519-Jul-07 1:08 
GeneralRe: How to include Header file in.... Pin
Rage19-Jul-07 1:30
professionalRage19-Jul-07 1:30 
GeneralRe: How to include Header file in.... [modified] Pin
Eytukan19-Jul-07 8:25
Eytukan19-Jul-07 8:25 
AnswerRe: How to include Header file in.... Pin
Matthew Faithfull19-Jul-07 2:27
Matthew Faithfull19-Jul-07 2:27 
Questionpackage installation. Pin
Md. Ali Naser Khan18-Jul-07 22:45
Md. Ali Naser Khan18-Jul-07 22:45 
QuestionOpening a drive...need help Pin
dranne18-Jul-07 22:12
dranne18-Jul-07 22:12 
AnswerRe: Opening a drive...need help Pin
thammadi18-Jul-07 22:29
thammadi18-Jul-07 22:29 
AnswerRe: Opening a drive...need help Pin
vipin_nvk18-Jul-07 22:33
vipin_nvk18-Jul-07 22:33 
QuestionOnIdle() not getting focus Pin
rp_suman18-Jul-07 22:05
rp_suman18-Jul-07 22:05 
AnswerRe: OnIdle() not getting focus Pin
Mark Salsbery19-Jul-07 5:21
Mark Salsbery19-Jul-07 5:21 
GeneralRe: OnIdle() not getting focus Pin
rp_suman19-Jul-07 14:40
rp_suman19-Jul-07 14:40 
GeneralRe: OnIdle() not getting focus Pin
Mark Salsbery19-Jul-07 14:56
Mark Salsbery19-Jul-07 14:56 
GeneralRe: OnIdle() not getting focus [modified] Pin
rp_suman19-Jul-07 17:46
rp_suman19-Jul-07 17:46 
GeneralRe: OnIdle() not getting focus Pin
Mark Salsbery19-Jul-07 20:14
Mark Salsbery19-Jul-07 20:14 
GeneralRe: OnIdle() not getting focus [modified] Pin
rp_suman19-Jul-07 20:57
rp_suman19-Jul-07 20:57 
GeneralRe: OnIdle() not getting focus Pin
Mark Salsbery20-Jul-07 5:05
Mark Salsbery20-Jul-07 5:05 
GeneralRe: OnIdle() not getting focus Pin
rp_suman22-Jul-07 19:09
rp_suman22-Jul-07 19:09 

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.