Link to home
Start Free TrialLog in
Avatar of Brian Dumas
Brian DumasFlag for United States of America

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
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Brian Dumas

ASKER

Thanks everyone.