|
-
May 30th, 2002, 06:30 PM
#1
Thread Starter
Hyperactive Member
pHint
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
Bababooey
Tatatoothy
Mamamonkey
-
May 30th, 2002, 10:20 PM
#2
Frenzied Member
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
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
May 30th, 2002, 11:08 PM
#3
Thread Starter
Hyperactive Member
then why respond?
and better yet, you're drunk in front of your computer?
Bababooey
Tatatoothy
Mamamonkey
-
May 31st, 2002, 03:17 AM
#4
UpdateAllViews(this, 0L, (CObject*)mystring);
where's the problem?
You haev to cast it back in OnUpdate:
CString* pStr = (CString*)pHint;
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
May 31st, 2002, 07:04 AM
#5
Frenzied Member
Originally posted by noble
then why respond?
and better yet, you're drunk in front of your computer?
Hehe yeah that's quite true, I wanted to help though 
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?
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|