Article View: borland.public.cppbuilder.nativeapi
Article #13407Re: TAPI 3.*
From: Sergey Muschin
Date: Wed, 15 Oct 2003 19:42
Date: Wed, 15 Oct 2003 19:42
55 lines
2611 bytes
2611 bytes
Thank You!
"Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> wrote in message
news:3f8cbe5d@newsgroups.borland.com...
> I have sent you an email with a library and with this information. I am
> putting this reply here for others who might run into the problem.
>
> Damon Chandler of TeamB provided this:
>
> The interface IDs for IITAPI and ITTAPI2 are as follows...
>
> const IID IID_ITTAPI =
> {0xB1EFC382,0x9355,0x11d0,{0x83,0x5C,0x00,0xAA,0x00,0x3C,0xCA,0xBD}};
> const IID IID_ITTAPI2 =
> {0x54FBDC8C,0xD90F,0x4dad,{0x96,0x95,0xB3,0x73,0x09,0x7F,0x09,0x4B}};
>
> I got these by running MS's MIDL compiler on "tapi3if.idl" in the
> "$(BCB)\Include\Idl" directory
>
> . Ed
>
> > Sergey Muschin wrote in message
> > news:3f8c13c0$1@newsgroups.borland.com...
> >
> > I'm trying to use TAPI 3 in my BCB6 programm but i can't
> > build it, because of the error:
> > [Linker Error] Unresolved external '_IID_ITTAPI' referenced from
> > C:\SRC\BCB6\TAPI\UNIT1.OBJ
> >
> > What am i doing wrong?
> >
> > Here is the code
> >
> > #include <vcl.h>
> > #pragma hdrstop
> > #include <Tapi3.h>
> >
> > #pragma argsused
> > int main(int argc, char* argv[]) {
> >
> > HRESULT hr = CoInitializeEx( NULL, COINIT_MULTITHREADED );
> >
> > ITTAPI *gpTapi;
> > hr = CoCreateInstance(CLSID_TAPI, NULL, CLSCTX_INPROC_SERVER,
IID_ITTAPI,
> > (LPVOID *)&gpTapi );
> >
> > hr = gpTapi->Initialize();
> >
> > gpTapi->Shutdown();
> > CoUninitialize();
> > return 0;
> > }
>
>
Technical Details
Message-ID:
<3f8da30d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!pln-w!extra.newsguy.com!lotsanews.com!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f8c13c0$1@newsgroups.borland.com> <3f8cbe5d@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,92792b1b51a454d2 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-15 12:48:58 PST Reply-To: "Sergey Muschin" <sergey.muschin@tonservices.com> From: "Sergey Muschin" <sergey.muschin@tonservices.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f8c13c0$1@newsgroups.borland.com> <3f8cbe5d@newsgroups.borland.com> Subject: Re: TAPI 3.* Date: Wed, 15 Oct 2003 13:42:04 -0600 Lines: 57 Organization: Flying J 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.110.225.254 Message-ID: <3f8da30d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066246925 204.110.225.254 (15 Oct 2003 12:42:05 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!pln-w!extra.newsguy.com!lotsanews.com!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail