🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
1 messages
1 total messages Started by Mike Mon, 09 Apr 2001 22:13
Mistake in help?
#1337
Author: Mike
Date: Mon, 09 Apr 2001 22:13
43 lines
1937 bytes
Hi!

I read help about waveOutWrite and Builder doesn't compile it. Waht is
wrong?

[C++ Error] Unit1.cpp(39): E2034 Cannot convert 'waveformat_tag *' to
'const tWAVEFORMATEX *'
[C++ Error] Unit1.cpp(39): E2342 Type mismatch in parameter 'pwfx'
(wanted 'const tWAVEFORMATEX *', got 'waveformat_tag *')

===========================================
...

    HWAVEOUT    hWaveOut;
    HGLOBAL     hWaveHdr;
    LPWAVEHDR   lpWaveHdr;
    HMMIO       hmmio;
    UINT        wResult;
    HANDLE      hFormat;
    WAVEFORMAT  *pFormat;
    DWORD       dwDataSize;

    // Open a waveform device for output using window callback.

    if (waveOutOpen((LPHWAVEOUT)&hWaveOut, WAVE_MAPPER,

HERE!!!->   (LPWAVEFORMAT)pFormat,
                    (LONG)hwndApp, 0L, CALLBACK_WINDOW))
    {
        MessageBox(hwndApp,
                   "Failed to open waveform output device.",
                   NULL, MB_OK | MB_ICONEXCLAMATION);
        LocalUnlock(hFormat);
        LocalFree(hFormat);
        mmioClose(hmmio, 0);
        return;
    }

...
===========================================


Mike
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads