Ive currently got 2 COM+ components that need to communicate with each other.
As far as i can see to make a VB COM+ component i just need to add the following to my class module.
Private oContext As ObjectContext
Private Sub ObjectControl_Activate()
Set oContext = GetObjectContext()
Private Sub ObjectControl_Deactivate()
Set oContext = Nothing
Private Function ObjectControl_CanBePooled() As Boolean
ObjectControl_CanBePooled = False
This seems to work fine and i can add the component using the component services module. Ive tested the componet from asp and it works fine.
Ive also created a c++ COM+ componet using the ATL wizard and adding an MTS Object. This also works fine from ASP.
The problem arises when i try and create an instance of the VB object from c++ using the CoCreateInstance function, it always returns 80004002 (E_NOINTERFACE)
Has anybody got an idea what may be going wrong or can point me to some articals/tutorials that cover the topic
Thanks in advance