Article View: borland.public.cppbuilder.nativeapi
Article #12579Re: (WINAPI) WaveIn* Function AV
From: Leo Havm�ller
Date: Fri, 28 Nov 2003 10:22
Date: Fri, 28 Nov 2003 10:22
22 lines
1557 bytes
1557 bytes
"Eric" <Eric@Dev_Null.o> wrote in message
news:3fc71fc0$1@newsgroups.borland.com...
>
> Hello All, I am getting an access violation with this function in one of
> my programs, how ever if I create a new project it works. does it have
> problems with being put inside the constructor of a TFrame?
>
> void getWaveInDevices(void)
> { //Test Code
> // UINT Devices = waveInGetNumDevs();
> WAVEINCAPS *p_wc;
> waveInGetDevCaps( 1,p_wc, sizeof(p_wc) );
> Device1NameLabel->Caption = AnsiString( p_wc->szPname );
> }
>
WAVEINCAPS wc;
waveInGetDevCaps(0, &wc, sizeof(wc) );
Device1NameLabel->Caption = AnsiString( p_wc.szPname);
Leo Havm�ller.
Technical Details
Message-ID:
<3fc721d0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fc71fc0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,e2950f875a4ab891 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-28 02:39:02 PST From: "Leo Havm�ller" <leh@-nospam-rtx.dk> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fc71fc0$1@newsgroups.borland.com> Subject: Re: (WINAPI) WaveIn* Function AV Date: Fri, 28 Nov 2003 11:22:08 +0100 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 80.63.27.146 Message-ID: <3fc721d0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1070014928 80.63.27.146 (28 Nov 2003 02:22:08 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail