Click here to Skip to main content
15,888,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Delay in Image Transfer trough media player encoder! Pin
Naveen Khanna20-Jun-07 18:55
Naveen Khanna20-Jun-07 18:55 
GeneralRe: Delay in Image Transfer trough media player encoder! Pin
Mark Salsbery21-Jun-07 5:28
Mark Salsbery21-Jun-07 5:28 
QuestionRedistributing Visual C++ Files Pin
Programm3r20-Jun-07 1:32
Programm3r20-Jun-07 1:32 
AnswerRe: Redistributing Visual C++ Files Pin
Hans Dietrich20-Jun-07 3:15
mentorHans Dietrich20-Jun-07 3:15 
GeneralRe: Redistributing Visual C++ Files Pin
Programm3r20-Jun-07 3:37
Programm3r20-Jun-07 3:37 
AnswerRe: Redistributing Visual C++ Files Pin
Mike Dimmick20-Jun-07 3:55
Mike Dimmick20-Jun-07 3:55 
QuestionInterdependent classes in C++ Pin
boffboy20-Jun-07 1:12
boffboy20-Jun-07 1:12 
AnswerRe: Interdependent classes in C++ Pin
Cedric Moonen20-Jun-07 1:21
Cedric Moonen20-Jun-07 1:21 
Pur those classes in separate files. Each class with one header file and one cpp file. In the header files, you can use forward declaration:

class Image;<br />
<br />
class Win<br />
{<br />
 .....<br />
};


This will tell the compiler that the class Image exists and will be defined elsewhere. This works only because you are working with pointers and you don't use anything specific from the class (you just declare a pointer). This won't work if you use a class instance instead of a pointer.

Then in the cpp file of the Win class, you will need to include the header file of the Image class.
You'll need to do that for both classes.


Cédric Moonen
Software developer

Charting control [v1.2]

GeneralRe: Interdependent classes in C++ Pin
tom groezer20-Jun-07 1:53
tom groezer20-Jun-07 1:53 
GeneralRe: Interdependent classes in C++ Pin
toxcct20-Jun-07 1:56
toxcct20-Jun-07 1:56 
GeneralRe: Interdependent classes in C++ Pin
Cedric Moonen20-Jun-07 2:01
Cedric Moonen20-Jun-07 2:01 
AnswerRe: Interdependent classes in C++ Pin
toxcct20-Jun-07 1:29
toxcct20-Jun-07 1:29 
QuestionDirective Pin
tom groezer20-Jun-07 0:45
tom groezer20-Jun-07 0:45 
AnswerRe: Directive Pin
Cedric Moonen20-Jun-07 0:58
Cedric Moonen20-Jun-07 0:58 
GeneralRe: Directive Pin
toxcct20-Jun-07 1:32
toxcct20-Jun-07 1:32 
GeneralRe: Directive Pin
Cedric Moonen20-Jun-07 1:39
Cedric Moonen20-Jun-07 1:39 
GeneralRe: Directive Pin
tom groezer20-Jun-07 1:43
tom groezer20-Jun-07 1:43 
GeneralRe: Directive Pin
toxcct20-Jun-07 1:51
toxcct20-Jun-07 1:51 
QuestionRetriving Device information attached with system Pin
Karismatic20-Jun-07 0:38
Karismatic20-Jun-07 0:38 
QuestionRe: Retriving Device information attached with system Pin
David Crow20-Jun-07 2:35
David Crow20-Jun-07 2:35 
QuestionRe: Retriving Device information attached with system Pin
Hamid_RT20-Jun-07 9:13
Hamid_RT20-Jun-07 9:13 
QuestionProblem removing object from list Pin
Kevin Brydon20-Jun-07 0:28
Kevin Brydon20-Jun-07 0:28 
AnswerRe: Problem removing object from list Pin
Cedric Moonen20-Jun-07 0:49
Cedric Moonen20-Jun-07 0:49 
GeneralRe: Problem removing object from list Pin
Kevin Brydon20-Jun-07 1:20
Kevin Brydon20-Jun-07 1:20 
Questioncyclic reduction on c Pin
ovoundaga19-Jun-07 23:32
ovoundaga19-Jun-07 23:32 

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.