Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: external variables for C and C++ mixed program Pin
zhijia.yuan1-Aug-06 9:44
zhijia.yuan1-Aug-06 9:44 
QuestionA question about postmessage. [modified] Pin
zhijia.yuan31-Jul-06 12:11
zhijia.yuan31-Jul-06 12:11 
AnswerRe: A question about postmessage. Pin
User 58385231-Jul-06 17:13
User 58385231-Jul-06 17:13 
GeneralRe: A question about postmessage. Pin
zhijia.yuan1-Aug-06 9:45
zhijia.yuan1-Aug-06 9:45 
QuestionGetting the hStdOutput from CreateProcess.hStdOutput [modified] Pin
darkcloud.42o31-Jul-06 11:17
darkcloud.42o31-Jul-06 11:17 
AnswerRe: Getting the hStdOutput from CreateProcess.hStdOutput Pin
James Brown31-Jul-06 11:43
James Brown31-Jul-06 11:43 
GeneralRe: Getting the hStdOutput from CreateProcess.hStdOutput [modified] Pin
darkcloud.42o31-Jul-06 12:10
darkcloud.42o31-Jul-06 12:10 
QuestionAdding member variables crashes app Pin
Wheatbread31-Jul-06 9:49
Wheatbread31-Jul-06 9:49 
Hi!

We have a class CDriver which inherits from IDriver. CDriver is defined in a library, CDriver.lib. CDriver.lib is added to the library definition of the project settings, and we have CDriver.h included in the file list for the project.

If we create a new class, CMyDriver, which inherits from CDriver, and add member variables to it, when we run the app, things crash when the destructor is called. If we remove the member variables things work properly. We can add as many member functions as we want, but cannot add member variables.

We dont understand that's happening. Any ideas? This is basic inheritance!! This is weird that I cannot add member variables.

Help!?!?!?
-C
AnswerRe: Adding member variables crashes app Pin
Chris Losinger31-Jul-06 9:57
professionalChris Losinger31-Jul-06 9:57 
GeneralRe: Adding member variables crashes app Pin
Wheatbread31-Jul-06 10:34
Wheatbread31-Jul-06 10:34 
AnswerRe: Adding member variables crashes app Pin
Hans Dietrich31-Jul-06 10:02
mentorHans Dietrich31-Jul-06 10:02 
GeneralRe: Adding member variables crashes app Pin
Wheatbread31-Jul-06 10:35
Wheatbread31-Jul-06 10:35 
AnswerRe: Adding member variables crashes app Pin
Zac Howland31-Jul-06 10:13
Zac Howland31-Jul-06 10:13 
GeneralRe: Adding member variables crashes app Pin
Wheatbread31-Jul-06 10:37
Wheatbread31-Jul-06 10:37 
GeneralRe: Adding member variables crashes app [modified] Pin
Zac Howland31-Jul-06 10:47
Zac Howland31-Jul-06 10:47 
GeneralRe: Adding member variables crashes app Pin
Wheatbread31-Jul-06 11:06
Wheatbread31-Jul-06 11:06 
GeneralRe: Adding member variables crashes app Pin
Zac Howland31-Jul-06 11:14
Zac Howland31-Jul-06 11:14 
GeneralRe: Adding member variables crashes app Pin
Wheatbread1-Aug-06 12:28
Wheatbread1-Aug-06 12:28 
GeneralRe: Adding member variables crashes app Pin
Zac Howland1-Aug-06 17:07
Zac Howland1-Aug-06 17:07 
Questionsubitem in CListCtrl Pin
Tara1431-Jul-06 9:46
Tara1431-Jul-06 9:46 
AnswerRe: subitem in CListCtrl Pin
Hans Dietrich31-Jul-06 10:07
mentorHans Dietrich31-Jul-06 10:07 
GeneralRe: subitem in CListCtrl Pin
Tara1431-Jul-06 18:37
Tara1431-Jul-06 18:37 
QuestionRe: subitem in CListCtrl Pin
David Crow31-Jul-06 10:20
David Crow31-Jul-06 10:20 
AnswerRe: subitem in CListCtrl Pin
Tara1431-Jul-06 18:53
Tara1431-Jul-06 18:53 
AnswerRe: subitem in CListCtrl Pin
Michael Dunn31-Jul-06 17:57
sitebuilderMichael Dunn31-Jul-06 17:57 

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.