Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

About runtime error

0 views
Skip to first unread message

Jitesh Virani

unread,
Mar 1, 2004, 3:32:30 PM3/1/04
to
Respected Sir,

Bywriting the below given code:

LPHWAVEOUT phwo=NULL;
LPWAVEFORMATEX pwfx=NULL;
HMMIO hmmio;
LPWAVEHDR pwh=NULL;
UINT cbwh=NULL;

pwfx->wFormatTag=MM_CREATIVE_MIDIOUT;
cbwh=pwfx->cbSize;

LPSTR m_csFileName="Applause.wav";

if(!(hmmio = mmioOpen(m_csFileName, NULL, MMIO_EXIST |
MMIO_READ | MMIO_ALLOCBUF)))
if (waveOutOpen(phwo, WAVE_MAPPER, pwfx, 0, 0L,
WAVE_MAPPED))
MMRESULT mmResult= waveOutWrite
(*phwo,pwh,cbwh);

I am getting the following error:
Debug Assertion failed.
file:daocore.cpp
line:39

So please guide me.

Regards,
Jitesh

0 new messages