🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13372

TAPI 3.*

#13372
From: Sergey Muschin
Date: Tue, 14 Oct 2003 15:18
30 lines
1556 bytes
Hi there,

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: <3f8c13c0$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-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,92792b1b51a454d2,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-14 08:42:05 PST
Reply-To: "Sergey Muschin" <sergey.muschin@tonservices.com>
From: "Sergey Muschin" <sergey.muschin@tonservices.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: TAPI 3.*
Date: Tue, 14 Oct 2003 09:18:25 -0600
Lines: 32
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: <3f8c13c0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066144704 204.110.225.254 (14 Oct 2003 08:18:24 -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