Click here to Skip to main content
15,894,539 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Required resource Pin
MsmVc23-Nov-10 0:49
MsmVc23-Nov-10 0:49 
GeneralRe: Required resource Pin
Richard MacCutchan23-Nov-10 1:44
mveRichard MacCutchan23-Nov-10 1:44 
GeneralRe: Required resource Pin
MsmVc23-Nov-10 17:34
MsmVc23-Nov-10 17:34 
GeneralRe: Required resource Pin
Richard MacCutchan23-Nov-10 21:33
mveRichard MacCutchan23-Nov-10 21:33 
QuestionRe: Required resource Pin
David Crow23-Nov-10 3:06
David Crow23-Nov-10 3:06 
QuestionRe: Required resource Pin
David Crow23-Nov-10 3:08
David Crow23-Nov-10 3:08 
AnswerRe: Required resource Pin
Richard MacCutchan23-Nov-10 3:21
mveRichard MacCutchan23-Nov-10 3:21 
QuestionProblem Initialising derived class Pin
Still learning how to code22-Nov-10 22:33
Still learning how to code22-Nov-10 22:33 
I am very new to putting inheritance into practice, so please treat me gently ! I am trying to create a new class CTimeEx to provide extra functions to CTime. The problem is that from the client’s point of view, the derived class doesn’t seem to be initialised.

My derived class definition is :-

class CTimeEx : public CTime
{
public:
CTimeEx();
CTimeEx(const CTime& TimeIn) : CTime(TimeIn) {};

….

And my client invocation is :-

CTime timeCurrent(CTime::GetCurrentTime());
CTimeEx timeExTest(timeCurrent);

When I trace through the calls, I see the base class contructor being called with timeCurrent, but when initialisation of the derived class completes, the time value for the CTimeEx object is still in it’s uninitialised state.

I’m sure that I’m probably doing something very stupid, but, having struggled with it for quite some time, I now need someone elses advice !! Thanking you in advance !

Doug
QuestionRe: Problem Initialising derived class Pin
CPallini22-Nov-10 22:43
mveCPallini22-Nov-10 22:43 
AnswerRe: Problem Initialising derived class Pin
Still learning how to code23-Nov-10 0:14
Still learning how to code23-Nov-10 0:14 
GeneralRe: Problem Initialising derived class Pin
CPallini23-Nov-10 0:40
mveCPallini23-Nov-10 0:40 
GeneralRe: Problem Initialising derived class Pin
Still learning how to code23-Nov-10 1:24
Still learning how to code23-Nov-10 1:24 
GeneralRe: Problem Initialising derived class Pin
CPallini23-Nov-10 1:25
mveCPallini23-Nov-10 1:25 
AnswerRe: Problem Initialising derived class Pin
Richard MacCutchan22-Nov-10 23:31
mveRichard MacCutchan22-Nov-10 23:31 
GeneralRe: Problem Initialising derived class Pin
Still learning how to code23-Nov-10 1:46
Still learning how to code23-Nov-10 1:46 
QuestionIcon of MessageBox not display. Pin
Le@rner22-Nov-10 18:44
Le@rner22-Nov-10 18:44 
AnswerRe: Icon of MessageBox not display. Pin
Luc Pattyn22-Nov-10 20:35
sitebuilderLuc Pattyn22-Nov-10 20:35 
QuestionRe: Icon of MessageBox not display. Pin
David Crow23-Nov-10 3:11
David Crow23-Nov-10 3:11 
AnswerRe: Icon of MessageBox not display. Pin
Le@rner23-Nov-10 17:09
Le@rner23-Nov-10 17:09 
QuestionI meet one problem, I donot know how to debug the JNI(java native code) project? Pin
yu-jian22-Nov-10 17:56
yu-jian22-Nov-10 17:56 
QuestionVc++ Project file(.dsp) use get all cpp function name? it is possible? Pin
mathivanaan22-Nov-10 17:43
mathivanaan22-Nov-10 17:43 
AnswerRe: Vc++ Project file(.dsp) use get all cpp function name? it is possible? Pin
Cool_Dev23-Nov-10 1:03
Cool_Dev23-Nov-10 1:03 
QuestionHow to export the drived class from one abstract class? And also STL container is used as private members. [modified] Pin
SAMZCN22-Nov-10 4:50
SAMZCN22-Nov-10 4:50 
AnswerRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
Richard MacCutchan22-Nov-10 5:38
mveRichard MacCutchan22-Nov-10 5:38 
GeneralRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
SAMZCN22-Nov-10 14:04
SAMZCN22-Nov-10 14:04 

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.