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

C / C++ / MFC

 
GeneralRe: CListBox head language display problem Pin
Stan the man16-May-08 19:49
Stan the man16-May-08 19:49 
GeneralRe: CListBox head language display problem Pin
Naveen16-May-08 22:48
Naveen16-May-08 22:48 
AnswerRe: CListBox head language display problem Pin
Michael Schubert16-May-08 23:38
Michael Schubert16-May-08 23:38 
GeneralRe: CListBox head language display problem Pin
Stan the man17-May-08 1:04
Stan the man17-May-08 1:04 
QuestionQuestion on OnClose of CAsyncSocket Pin
Stan the man16-May-08 16:43
Stan the man16-May-08 16:43 
QuestionNeeded: A valid default 'flags' value for HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys Pin
glyfyx16-May-08 14:44
glyfyx16-May-08 14:44 
AnswerRe: Needed: A valid default 'flags' value for HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys Pin
Maxim Zarus16-May-08 19:06
Maxim Zarus16-May-08 19:06 
GeneralRe: Needed: A valid default 'flags' value for HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys Pin
glyfyx16-May-08 23:12
glyfyx16-May-08 23:12 
QuestionHow do I use the keyword null of C# in C++? Pin
luisgrimaldo16-May-08 12:34
luisgrimaldo16-May-08 12:34 
AnswerRe: How do I use the keyword null of C# in C++? Pin
Hamid_RT16-May-08 18:19
Hamid_RT16-May-08 18:19 
GeneralRe: How do I use the keyword refof C# in C++? Pin
luisgrimaldo16-May-08 18:40
luisgrimaldo16-May-08 18:40 
GeneralRe: How do I use the keyword refof C# in C++? Pin
Joe Woodbury16-May-08 19:26
professionalJoe Woodbury16-May-08 19:26 
GeneralRe: How do I use the keyword refof C# in C++? Pin
Hamid_RT16-May-08 19:27
Hamid_RT16-May-08 19:27 
QuestionHow do I send a WM_PAINT message Pin
Kwanalouie16-May-08 12:28
Kwanalouie16-May-08 12:28 
AnswerRe: How do I send a WM_PAINT message Pin
Nelek16-May-08 15:16
protectorNelek16-May-08 15:16 
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 

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.