Results 1 to 2 of 2

Thread: Very wierd string problem pls help

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    60

    Very wierd string problem pls help

    alright,


    my problem is i wrote a class that returns a char * i can display in a message box but when i try "SetWindowText" it displays garbage e.g:

    char *temp = mp3.GetTitle();
    MessageBox(NULL,temp,temp,MB_OK);

    SetWindowText(GetDlgItem(hwnd,IDC_ARTIST),temp);


    now the message box displays it fine but the "SetWindowText" doenst please help i have no idea what it could be.

    thanks in advance

    chris
    What is Life? One big dream or one Big nightmere.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Is it a problem if you post the project?
    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.

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