2004-03-23, 21:40
i'm trying to display the name of song instead of the filename. i created a function that does it, but whenever pass it to the setlabel function, it passes the pointers info instead of the song.
example... should display my immortal but displays "|||||||||||| ||"
here's the codes that passes it.
if(dwsongid==songid)
{
char name[64];
wcstombs(name,songname,64);
clog::log("%s",name);
char* ptr2= name;
return ptr2;
//return "this is a test!!!";
}
it is a char* function.
i can't seem to figure this out. can someone help me?
example... should display my immortal but displays "|||||||||||| ||"
here's the codes that passes it.
if(dwsongid==songid)
{
char name[64];
wcstombs(name,songname,64);
clog::log("%s",name);
char* ptr2= name;
return ptr2;
//return "this is a test!!!";
}
it is a char* function.
i can't seem to figure this out. can someone help me?