Hi everyone!

I try to detect when FMUSIC_GetName return NULL with this code:

if (FMUSIC_GetName(music) != NULL){
SendMessage(ghStatBar, SB_SETTEXT, 1, (LPARAM) FMUSIC_GetName(musique));
} else SendMessage(ghStatBar, SB_SETTEXT, 1, (LPARAM) ” ???”);

but when i play a XM (Fastraker 2, without title) i’ll should have “???” and not an empty statusbar field.

So… what is wrong here ? ==> if (FMUSIC_GetName(music) != NULL){

Thx for your help! ๐Ÿ˜‰

PS: i miss to specify i have tried too ==> if (FMUSIC_GetName(music) != “”){

  • You must to post comments

Oh! of course…

thx you brett! ๐Ÿ˜‰

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.