The only VBAI ActiveX examples are written in Visual Basic and LabVIEW.
The Visual Basic one should give you a good idea on how to implement it in C++.
C:\Program Files\National Instruments\Vision Builder AI 3.5\ActiveX Support\Examples\MSVB
-Christophe