I have an update function for one of my views,
how do i send a CString as the pHint?
i'm trying to typecast it but nothing seems to be working
Printable View
I have an update function for one of my views,
how do i send a CString as the pHint?
i'm trying to typecast it but nothing seems to be working
What?! Ok I know I'm ****ing drunk at the moment, but ***?
You're tryin to cast a pointer to an handle to an int to a CString? (based on the variable name) ?
I dunno MFC so maybe that's the prob
then why respond?
and better yet, you're drunk in front of your computer?
UpdateAllViews(this, 0L, (CObject*)mystring);
where's the problem?
You haev to cast it back in OnUpdate:
CString* pStr = (CString*)pHint;
Hehe yeah that's quite true, I wanted to help though ;)Quote:
Originally posted by noble
then why respond?
and better yet, you're drunk in front of your computer?
Anyway ofcourse I'm not drinking in front of my computer, but I came back from a party, and didn't felt like sleeping.. get it? :)