PDA

Click to See Complete Forum and Search --> : Very wierd string problem pls help


TeamKiller
Oct 1st, 2002, 09:50 AM
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

CornedBee
Oct 2nd, 2002, 09:13 AM
Is it a problem if you post the project?