Brian Dumas
asked on
using interface in TLB
Hello experts,
I have a TLB that exposes the interface IA.
I have a class CA that looks like this
//----------------MyCA.h
class CA
{
CA();
IA* my_ia; ////compiler does not knowtype IA
}
//--------------MyCA.cpp
#Import "myia.tlb" named_guids no_namespace
#include "MYCA.h"
CA::CA()
{
my_ia->somefunction();
}
here is my problem. In the CPP file for class CA, I import the TLB, but my header does not know the type IA. Can someone explain to me how to declare a variable of type IA inside my class CA?
using : VS2013 Pro
Windows 7 Pro
Thanks, Brian
I have a TLB that exposes the interface IA.
I have a class CA that looks like this
//----------------MyCA.h
class CA
{
CA();
IA* my_ia; ////compiler does not knowtype IA
}
//--------------MyCA.cpp
#Import "myia.tlb" named_guids no_namespace
#include "MYCA.h"
CA::CA()
{
my_ia->somefunction();
}
here is my problem. In the CPP file for class CA, I import the TLB, but my header does not know the type IA. Can someone explain to me how to declare a variable of type IA inside my class CA?
using : VS2013 Pro
Windows 7 Pro
Thanks, Brian
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER