Results 1 to 5 of 5

Thread: pHint

  1. #1

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471

    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

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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.

  3. #3

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471
    then why respond?

    and better yet, you're drunk in front of your computer?
    Bababooey
    Tatatoothy
    Mamamonkey

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  5. #5
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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
  •  



Click Here to Expand Forum to Full Width