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
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