Jump to content
  • Advertisement

Archived

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

wah_on_2

What 'L ' mean in this statement?

This topic is 5939 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!