Click here to Skip to main content
15,906,766 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFrame Rate Pin
J512198217-Mar-06 17:57
J512198217-Mar-06 17:57 
Questiontables within richedit controls Pin
Waldermort17-Mar-06 15:26
Waldermort17-Mar-06 15:26 
QuestionQuestions about defines, includes, etc... Pin
Lord Kixdemp17-Mar-06 15:10
Lord Kixdemp17-Mar-06 15:10 
AnswerRe: Questions about defines, includes, etc... Pin
Stephen Hewitt17-Mar-06 15:16
Stephen Hewitt17-Mar-06 15:16 
GeneralRe: Questions about defines, includes, etc... Pin
Lord Kixdemp17-Mar-06 16:46
Lord Kixdemp17-Mar-06 16:46 
GeneralRe: Questions about defines, includes, etc... Pin
Waldermort17-Mar-06 18:16
Waldermort17-Mar-06 18:16 
GeneralRe: Questions about defines, includes, etc... Pin
Lord Kixdemp18-Mar-06 12:01
Lord Kixdemp18-Mar-06 12:01 
QuestionDerived class causes error Pin
BuckBrown17-Mar-06 13:03
BuckBrown17-Mar-06 13:03 
Confused | :confused: Hi,

I have never tried to derive a class from one of my own classes until now, but there is a problem. I have a simple class called CInstrument defined in the Instrument.h file. Since I have many instruments I wanted to derive a class for each unique instrument. For an oscilloscope I defined a class COscilloscope : CInstrument in the Oscilloscope.h file that also #includes the Instrument.h file. There is a third class where I want to create an instance of the Oscilloscope object but if I #include Oscilloscope.h in the third class then I get a C2011 'class' type redefinition error. I can't find where any #include is including the definition twice. Is there something basic that I am not seeing? My stuff looks like the examples in the texts I have.

Thanks

Buck Brown
AnswerRe: Derived class causes error Pin
PJ Arends17-Mar-06 13:24
professionalPJ Arends17-Mar-06 13:24 
AnswerRe: Derived class causes error Pin
Stephen Hewitt17-Mar-06 15:03
Stephen Hewitt17-Mar-06 15:03 
GeneralRe: Derived class causes error Pin
BuckBrown21-Mar-06 3:15
BuckBrown21-Mar-06 3:15 
QuestionVC++ Express Edition 2005 Pin
thierrypp17-Mar-06 10:48
thierrypp17-Mar-06 10:48 
AnswerRe: VC++ Express Edition 2005 Pin
George L. Jackson17-Mar-06 12:03
George L. Jackson17-Mar-06 12:03 
GeneralRe: VC++ Express Edition 2005 Pin
thierrypp17-Mar-06 22:18
thierrypp17-Mar-06 22:18 
Questionrichedit controls Pin
Waldermort17-Mar-06 7:47
Waldermort17-Mar-06 7:47 
AnswerRe: richedit controls Pin
Waldermort17-Mar-06 8:26
Waldermort17-Mar-06 8:26 
QuestionTrackbar Control Pin
amanoullah17-Mar-06 7:44
amanoullah17-Mar-06 7:44 
AnswerRe: Trackbar Control Pin
Waldermort17-Mar-06 7:53
Waldermort17-Mar-06 7:53 
GeneralRe: Trackbar Control Pin
Ravi Bhavnani17-Mar-06 11:33
professionalRavi Bhavnani17-Mar-06 11:33 
QuestionWhere are IE favourites in registry Pin
Chintoo72317-Mar-06 6:10
Chintoo72317-Mar-06 6:10 
AnswerRe: Where are IE favourites in registry Pin
Michael Dunn17-Mar-06 6:53
sitebuilderMichael Dunn17-Mar-06 6:53 
QuestionHow do i create my own bitmap? Pin
woosoo17-Mar-06 5:23
woosoo17-Mar-06 5:23 
AnswerRe: How do i create my own bitmap? Pin
PJ Arends17-Mar-06 13:45
professionalPJ Arends17-Mar-06 13:45 
GeneralRe: How do i create my own bitmap? Pin
woosoo18-Mar-06 5:38
woosoo18-Mar-06 5:38 
Questionx ==> next biggest power of two Pin
peterchen17-Mar-06 5:06
peterchen17-Mar-06 5:06 

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.