int myInt=0; Patch = (unsigned char)myInt; m_picCtrl.FreeImage(); CFile picFile; if(picFile.Open(_T("res/acoustic grand piano_small.png"), CFile::modeReadWrite | CFile::typeBinary)) { cout("opened"); BYTE* pBuffer = new BYTE[(unsigned int)picFile.GetLength()]; if(pBuffer != NULL) { picFile.Read(pBuffer, (UINT)picFile.GetLength()); //Load the Image cout("displayed"); m_picCtrl.Load(pBuffer, (size_t)picFile.GetLength()); delete pBuffer; } }
PlaySoundW(L"C:\\Users\\Chaiein\\Downloads\\oscilloscope_src - Copy\\sound1.wav",NULL, SND_FILENAME);
PlaySound("sound1.wav",NULL,SND_FILENAME);
PlaySoundW(L"C://Users//Chaiein/Downloads/oscilloscope_src//sound1.wav",NULL, SND_FILENAME);