🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #1337

Mistake in help?

#1337
From: 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
Technical Details
Message-ID: <3AD233EB.7FF2FD31@yahoo.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,2d7c63eec105c5d6,start
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2001-04-09 15:20:06 PST
Message-ID: <3AD233EB.7FF2FD31@yahoo.com>
Date: Tue, 10 Apr 2001 00:13:00 +0200
From: Mike <ppagee@yahoo.com>
Organization: Anonymous
X-Mailer: Mozilla 4.75 [en] (Win95; U)
X-Accept-Language: en,sl
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Mistake in help?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 194.249.6.214
X-Trace: dnews 986854433 194.249.6.214 (9 Apr 2001 15:13:53 -0700)
Lines: 44
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews