Board index » cppbuilder » HELP, HELP HELP: Using MS DLLS in BCB

HELP, HELP HELP: Using MS DLLS in BCB


2005-04-16 04:47:18 AM
cppbuilder92
Hi all
ok, I can get VS DLLS o work in BCB just fine by using the import and
impdef applications, but I am trying to use TAPI, and there is interface
ID that's defined as IID_ITTAPI, it is declared in the Borland header
files as
EXTERN_C const IID IID_ITTAPI;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("B1EFC382-9355-11d0-835C-00AA003CCABD")
ITTAPI : public IDispatch
{
in the tapi3if.h
It can also be found in the MSVC header file as
EXTERN_C const IID IID_ITTAPI;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("B1EFC382-9355-11d0-835C-00AA003CCABD")
ITTAPI : public IDispatch
{
When I link my application I am getting
[Linker Error] Unresolved external '_IID_ITTAPI' referenced from
C:\O\MAINUNIT.OBJ
Q. Where and how do I link in an MSVC library with this definition if
thats what I am meant to???
Help
 
 

Re:HELP, HELP HELP: Using MS DLLS in BCB

Quote
EXTERN_C const IID IID_ITTAPI;

#if defined(__cplusplus) && !defined(CINTERFACE)

MIDL_INTERFACE("B1EFC382-9355-11d0-835C-00AA003CCABD")
ITTAPI : public IDispatch
{
When I link my application I am getting

[Linker Error] Unresolved external '_IID_ITTAPI' referenced from
C:\O\MAINUNIT.OBJ
Found this on google. Posted by Ed Mulroy.
<quote>
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
</quote>
H^2