Article View: borland.public.cppbuilder.nativeapi
Article #11536Re: TAPI
From: Fractal Cat
Date: Tue, 03 Feb 2004 18:19
Date: Tue, 03 Feb 2004 18:19
39 lines
2066 bytes
2066 bytes
Hi Remy,
How can I tell if my modem is compatible with CallerID? What is the
command?
Regards thanks
Fractal Cat.
"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:
<401fe61a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!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 10:28:32 PST From: "Fractal Cat" <pjb@prime-projects.co.uk> Newsgroups: borland.public.cppbuilder.nativeapi References: <401ebcd9@newsgroups.borland.com> <401ec7d4$1@newsgroups.borland.com> Subject: Re: TAPI Date: Tue, 3 Feb 2004 18:19:10 -0000 Lines: 41 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: 81.128.202.102 Message-ID: <401fe61a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1075832346 81.128.202.102 (3 Feb 2004 10:19:06 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail