Article View: borland.public.cppbuilder.nativeapi
Article #11534Re: TAPI
From: Elias Berelian
Date: Tue, 03 Feb 2004 16:20
Date: Tue, 03 Feb 2004 16:20
34 lines
2094 bytes
2094 bytes
Am I correct in assuming that you can only get TAPI to work with Voice
Modems under Win98. If so, is it because onlt Win98 has the correct drivers
for voice modems?
"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:401ec7d4$1@newsgroups.borland.com...
>
> "Babak" <babak_info@hotpop.com> wrote in message
> news:401ebcd9@newsgroups.borland.com...
>
> > what is wrong with this code?
>
> You are declaring an unintialized pointer and then trying to access its
> members before allocating any actual memory for them. You should do this
> instead:
>
> LINECALLPARAMS geCallParams = {0};
> geCallParams.dwBearerMode = LINEBEARERMODE_VOICE;
> geCallParams.dwMediaMode = LINEMEDIAMODE_INTERACTIVEVOICE;
> geCallParams.dwAddressMode = LINEADDRESSMODE_DIALABLEADDR;
> geCallParams.dwCallParamFlags = LINECALLPARAMFLAGS_DESTOFFHOOK |
> LINECALLPARAMFLAGS_ORIGOFFHOOK;
> geCallParams.dwNoAnswerTimeout = 30;
>
> Then, when you are ready to pass the structure to a function that expects
a
> pointer, use the '&' address operator, ie:
>
> somefunction(&geCallParams);
>
>
> Gambit
>
>
Technical Details
Message-ID:
<401fca35$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<401ebcd9@newsgroups.borland.com> <401ec7d4$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,1d1c29f49c8bfcc9 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-03 08:28:36 PST From: "Elias Berelian" <elias@snetnsa.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <401ebcd9@newsgroups.borland.com> <401ec7d4$1@newsgroups.borland.com> Subject: Re: TAPI Date: Tue, 3 Feb 2004 11:20:57 -0500 Lines: 36 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: 204.60.2.28 Message-ID: <401fca35$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1075825205 204.60.2.28 (3 Feb 2004 08:20:05 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail