Archived

This topic is now archived and is closed to further replies.

wah_on_2

What 'L ' mean in this statement?

Recommended Posts

I found a DSound sample program from web but i don''t understand the meaning of ''L'' in the below statement. Can explain?
  
    m_pLoader->LoadObjectFromFile(CLSID_DirectMusicSegment, IID_IDirectMusicSegment8, L"sound.mid", (void **) &m_pBkgdMusic);

  
Thanks!

Share this post


Link to post
Share on other sites
It means the string is Unicode, as opposed to ASCII. An example:


char *AsciiString = "Ascii String";
wchar_t *UnicodeString = L"Unicode String";


wchar_t is just a typedef for "unsigned short".


codeka.com - Just click it.

Share this post


Link to post
Share on other sites