I tested an MCI sample from Borland Code Center and it works ok, but it not saves the filename ok, and I don't understand why.
This is the code (i have changed testing to solve the problem the instruction wsprintf of the sample to strcpy)
char file[96]="";
strcpy(file,"aud.wav");
//
// now stop audio and save to disk
MCIWndStop(m_hMCIWnd);
MCIWndSave(m_hMCIWnd, file);
MCIWndClose(m_hMCIWnd);
It saves the file but with name like v
Someone knows a solution to this?
Comments
You need to use a WCHAR or TCHAR data type:
MCIWndSave(m_hMCIWnd, L"file_path");
I published an article in my blog about Win32 data types for C# devs:
http://jacace.wordpress.com/2013/01/16/entendiendo-los-tipos-de-cadenas-de-la-win32/
Javier Andres Caceres Alvis
You need to use a WCHAR or TCHAR data type:
MCIWndSave(m_hMCIWnd, L"file_path");
I published an article in my blog about Win32 data types for C# devs:
http://jacace.wordpress.com/2013/01/16/entendiendo-los-tipos-de-cadenas-de-la-win32/
Javier Andres Caceres Alvis
You need to use a WCHAR or TCHAR data type:
MCIWndSave(m_hMCIWnd, L"file_path");
I published an article in my blog about Win32 data types for C# devs:
http://jacace.wordpress.com/2013/01/16/entendiendo-los-tipos-de-cadenas-de-la-win32/
Javier Andres Caceres Alvis