Thanks for the links. But my problem here though is unable to use the function in the dLL. I am able to talk to the
VB DLL and use any simple function like adding numbers. But in
VB i have a function of the following code ;
Public Function getFbook(Fbook As F1Book) As Variant
Dim i As Integer
For i = 1 To Fbook.NumSheets
MsgBox Fbook.SheetName(i)
Next
End Function
c++ code
HRESULT hr;
hr=CoInitialize(0);
//IF1Book *m_pIF1Book;
_Class1Ptr ptr;
ptr.CreateInstance(__uuidof(Class1));
ptr->getFbook((IF1Book**)&m_hSS);
This piece of code compiles but while running it fails and gives an error like "The object invoked is disconnected from clienst"
Any help appreiciated