I am not a native C++ programmer, so I need some help with the following:
I got this code working:
#pragma comment(lib, "winmm.lib")
LPCWSTR openCDCommand = L"set cdaudio door open";
//comes from Windows.h, needs winmm.lib see header includes
int errCode = mciSendString(openCDCommand, 0, 0, 0);
Questions:
- Do I need to work with LPCWSTR? Why didn't I find a System::String example?
- How should I handle 'string concatination'? I cant simply do L"foo"+L"baar"?
- Am I on the totally wrong way to play sounds with mciSendString? (actually I really want to use MCI Command and MCI sendString as i did in other projects before)
- Is there another way to include the external function mciSendString so it can handle handles?