Article View: borland.public.cppbuilder.nativeapi
Article #13385Re: TAPI 3.*
From: Ed Mulroy [TeamB]
Date: Wed, 15 Oct 2003 03:26
Date: Wed, 15 Oct 2003 03:26
48 lines
2210 bytes
2210 bytes
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:
<3f8cbe5d@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:
<3f8c13c0$1@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-14 20:39:36 PST From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f8c13c0$1@newsgroups.borland.com> Subject: Re: TAPI 3.* Date: Tue, 14 Oct 2003 23:26:08 -0400 Lines: 50 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.1106 NNTP-Posting-Host: 24.74.175.102 Message-ID: <3f8cbe5d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066188381 24.74.175.102 (14 Oct 2003 20:26:21 -0700) X-Authenticated-User: edmulroy 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