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

C / C++ / MFC

 
GeneralRe: How do I send a WM_PAINT message Pin
Kwanalouie16-May-08 16:23
Kwanalouie16-May-08 16:23 
QuestionRe: How do I send a WM_PAINT message Pin
Nelek16-May-08 23:59
protectorNelek16-May-08 23:59 
AnswerRe: How do I send a WM_PAINT message Pin
akira3217-May-08 2:22
akira3217-May-08 2:22 
AnswerRe: How do I send a WM_PAINT message Pin
Kwanalouie17-May-08 3:45
Kwanalouie17-May-08 3:45 
GeneralRe: How do I send a WM_PAINT message Pin
Nelek17-May-08 8:16
protectorNelek17-May-08 8:16 
GeneralRe: How do I send a WM_PAINT message Pin
Kwanalouie18-May-08 1:35
Kwanalouie18-May-08 1:35 
GeneralRe: How do I send a WM_PAINT message Pin
Nelek21-May-08 8:23
protectorNelek21-May-08 8:23 
QuestionSOLVED - Passing CObject to OnUpdate - compiler error C2039 [modified] Pin
Vaclav_16-May-08 6:12
Vaclav_16-May-08 6:12 
I am trying to use CObject *pHint in CView OnUpdate.
Here is my instantiation of CObject derived class:

....
m_C_Parameters = new C_Parameters(); // CObject base class
VERIFY(m_C_Parameters);
m_C_Parameters->hello = 10; // set test variable
m_CCCC_ParserDoc->UpdateAllViews(NULL,RED,m_C_Parameters);
....

Variable int hello is declared in C_Parameters();


Here is my OnUpdate override in CView dereived class:

void C_List_View_::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
int test = pHint->hello;
.......


However,
the compiler gets me an error:

error C2039: 'hello' : is not a member of 'CObject'
f:\program files\microsoft visual studio\vc98\mfc\include\afx.h(666) : see declaration of 'CObject'

What did I missed?
Thanks for yor help.
Vaclav

<div class="ForumMod">modified on Friday, May 16, 2008 1:01 PM</div>
AnswerRe: Passing CObject to OnUpdate - compiler error C2039 Pin
mid=574116-May-08 6:49
mid=574116-May-08 6:49 
GeneralRe: Passing CObject to OnUpdate - compiler error C2039 Pin
Kelly Herald16-May-08 6:52
Kelly Herald16-May-08 6:52 
AnswerRe: Passing CObject to OnUpdate - compiler error C2039 Pin
Kelly Herald16-May-08 6:50
Kelly Herald16-May-08 6:50 
GeneralRe: Passing CObject to OnUpdate - compiler error C2039 Pin
Vaclav_16-May-08 7:01
Vaclav_16-May-08 7:01 
QuestionDo any body know the encoding formate of .rc file in VS 2005? Pin
sumit.durg16-May-08 5:19
sumit.durg16-May-08 5:19 
AnswerRe: Do any body know the encoding formate of .rc file in VS 2005? Pin
mid=574116-May-08 6:46
mid=574116-May-08 6:46 
QuestionError adding a string to a DropList Pin
piul16-May-08 5:13
piul16-May-08 5:13 
AnswerRe: Error adding a string to a DropList Pin
toxcct16-May-08 5:19
toxcct16-May-08 5:19 
GeneralRe: Error adding a string to a DropList Pin
piul16-May-08 5:25
piul16-May-08 5:25 
QuestionRe: Error adding a string to a DropList Pin
CPallini16-May-08 5:24
mveCPallini16-May-08 5:24 
AnswerRe: Error adding a string to a DropList Pin
piul16-May-08 5:26
piul16-May-08 5:26 
GeneralRe: Error adding a string to a DropList Pin
CPallini16-May-08 5:29
mveCPallini16-May-08 5:29 
QuestionRe: Error adding a string to a DropList Pin
piul16-May-08 5:40
piul16-May-08 5:40 
AnswerRe: Error adding a string to a DropList Pin
CPallini16-May-08 5:49
mveCPallini16-May-08 5:49 
GeneralRe: Error adding a string to a DropList Pin
piul16-May-08 5:51
piul16-May-08 5:51 
AnswerRe: Error adding a string to a DropList Pin
piul16-May-08 5:28
piul16-May-08 5:28 
GeneralRe: Error adding a string to a DropList Pin
krmed16-May-08 5:40
krmed16-May-08 5:40 

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.