Click here to Skip to main content
15,892,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Converting string to long Pin
vgandhi17-Jan-07 22:26
vgandhi17-Jan-07 22:26 
GeneralRe: Converting string to long Pin
Michael Dunn18-Jan-07 7:52
sitebuilderMichael Dunn18-Jan-07 7:52 
GeneralRe: Converting string to long Pin
David Crow18-Jan-07 3:23
David Crow18-Jan-07 3:23 
GeneralRe: Converting string to long Pin
vgandhi18-Jan-07 6:44
vgandhi18-Jan-07 6:44 
GeneralRe: Converting string to long Pin
David Crow18-Jan-07 7:08
David Crow18-Jan-07 7:08 
Questionon saving WAV file Pin
git crunk17-Jan-07 20:24
git crunk17-Jan-07 20:24 
AnswerRe: on saving WAV file Pin
Cedric Moonen17-Jan-07 20:33
Cedric Moonen17-Jan-07 20:33 
GeneralRe: on saving WAV file Pin
git crunk18-Jan-07 22:09
git crunk18-Jan-07 22:09 
oh im sorry.it was just my first time to join forums like this. anyway the error that im referring to is an unexpected end of file while looking for pre compiled header directive.

i dont know what header i will use for this program.
here's the code..
///////////////////////////////////////////////////////////<br />
// lpszPathName - Pathname of file<br />
// pSound - Pointer to sound buffer<br />
// cbSound - size in bytes of sound buffer<br />
// pWfx - pointer to WAVEFORMATEX structure<br />
// cbWfx - size of this structure<br />
//#include <dxerr9.h><br />
<br />
<br />
	<br />
BOOL SaveWAVFile(LPCTSTR lpszPathName, HPSTR pSound, LONG cbSound,WAVEFORMATEX pWfx, LONG cbWfx);<br />
{<br />
	MMIOINFO mmioinfo;<br />
	MMCKINFO ckRIFF;<br />
	MMCKINFO ck;<br />
	HMMIO hmmio;<br />
<br />
	::ZeroMemory(&mmioinfo,sizeof(mmioinfo));<br />
	{<br />
	hmmio = mmioOpen((LPSTR) lpszPathName,&mmioinfo,MMIO_WRITE|MMIO_CREATE);<br />
<br />
	if (hmmio == NULL) <br />
		{<br />
		TRACE("mmioOpen returns NULL\n");<br />
		return FALSE;<br />
		}<br />
<br />
	// Creating 'RIFF' and 'WAVE' chunks<br />
	ckRIFF.fccType = mmioFOURCC('W', 'A', 'V', 'E');<br />
	ckRIFF.cksize = 0L;<br />
	ckRIFF.dwFlags = MMIO_DIRTY;<br />
	mmioCreateChunk(hmmio, &ckRIFF, MMIO_CREATERIFF);<br />
<br />
	// Creating 'fmt ' chunk<br />
	ck.ckid = mmioFOURCC('f', 'm', 't', ' ');<br />
	ck.cksize = 0L;<br />
	ck.dwFlags = MMIO_DIRTY;<br />
	mmioCreateChunk(hmmio, &ck, 0);<br />
	mmioWrite(hmmio, (HPSTR) pWfx, cbWfx);<br />
<br />
	// Goto to 'WAVE' chunk and update 'fmt ' chunk size<br />
	mmioAscend(hmmio, &ck, 0);<br />
<br />
	// Creating 'data' chunk<br />
	ck.ckid = mmioFOURCC('d', 'a', 't', 'a');<br />
	ck.cksize = 0L;<br />
	ck.dwFlags = MMIO_DIRTY;<br />
	mmioCreateChunk(hmmio, &ck, 0);<br />
	mmioWrite(hmmio,(HPSTR) pSound,cbSound);<br />
<br />
	// Goto to 'WAVE' chunk and update 'data' chunk size<br />
	mmioAscend(hmmio, &ck, 0);<br />
<br />
	// Goto to 'RIFF' chunk and update 'WAVE' chunk size<br />
	mmioAscend(hmmio, &ckRIFF, 0);<br />
	mmioClose(hmmio,0);<br />
}<br />

GeneralRe: on saving WAV file Pin
Cedric Moonen19-Jan-07 0:58
Cedric Moonen19-Jan-07 0:58 
QuestionMy CreateFile is not working Pin
amitmistry_petlad 17-Jan-07 19:54
amitmistry_petlad 17-Jan-07 19:54 
AnswerRe: My CreateFile is not working Pin
prasad_som17-Jan-07 19:59
prasad_som17-Jan-07 19:59 
GeneralRe: My CreateFile is not working Pin
amitmistry_petlad 17-Jan-07 20:12
amitmistry_petlad 17-Jan-07 20:12 
AnswerRe: My CreateFile is not working Pin
prasad_som17-Jan-07 20:25
prasad_som17-Jan-07 20:25 
GeneralRe: My CreateFile is not working Pin
amitmistry_petlad 17-Jan-07 20:34
amitmistry_petlad 17-Jan-07 20:34 
AnswerRe: My CreateFile is not working Pin
prasad_som17-Jan-07 21:30
prasad_som17-Jan-07 21:30 
AnswerRe: My CreateFile is not working Pin
Hamid_RT17-Jan-07 20:03
Hamid_RT17-Jan-07 20:03 
GeneralRe: My CreateFile is not working Pin
amitmistry_petlad 17-Jan-07 20:15
amitmistry_petlad 17-Jan-07 20:15 
GeneralRe: My CreateFile is not working Pin
Rajesh R Subramanian17-Jan-07 20:37
professionalRajesh R Subramanian17-Jan-07 20:37 
GeneralRe: My CreateFile is not working Pin
Hamid_RT18-Jan-07 0:38
Hamid_RT18-Jan-07 0:38 
QuestionCString amd multithreading Pin
softwaremonkey17-Jan-07 19:39
softwaremonkey17-Jan-07 19:39 
AnswerRe: CString amd multithreading Pin
Nibu babu thomas17-Jan-07 20:14
Nibu babu thomas17-Jan-07 20:14 
GeneralRe: CString amd multithreading Pin
softwaremonkey17-Jan-07 20:53
softwaremonkey17-Jan-07 20:53 
AnswerRe: CString amd multithreading Pin
David Crow18-Jan-07 3:29
David Crow18-Jan-07 3:29 
AnswerRe: CString amd multithreading Pin
Mark Salsbery18-Jan-07 7:07
Mark Salsbery18-Jan-07 7:07 
QuestionSplash Screen Pin
Sangeetha_J17-Jan-07 19:26
Sangeetha_J17-Jan-07 19:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.