G
Guest
Hi,
I have a DLL written in VB 6.0. The DLL has some properties which can be set
and a collection of Names. Here is the code in VB which i am using to access
this DLL.
Public Sub Form_Load()
Dim objAddBook as New Disp.AddressBook
objAddBook.Names.Add("John","Doe")
objAddBook.Names.Add("Emily","Jones")
Msgbox "Name : " & objAddBook(1).FirstName & " " & objAddBook(1).LastName
End Sub
This piece of code works great. But, when I want to add items to this
collection in VC++, I am getting stuck. Can anyone please help me out on how
I could use this DLL in VC++. Any pointers to help me would be appreciated.
Thanks.
I have a DLL written in VB 6.0. The DLL has some properties which can be set
and a collection of Names. Here is the code in VB which i am using to access
this DLL.
Public Sub Form_Load()
Dim objAddBook as New Disp.AddressBook
objAddBook.Names.Add("John","Doe")
objAddBook.Names.Add("Emily","Jones")
Msgbox "Name : " & objAddBook(1).FirstName & " " & objAddBook(1).LastName
End Sub
This piece of code works great. But, when I want to add items to this
collection in VC++, I am getting stuck. Can anyone please help me out on how
I could use this DLL in VC++. Any pointers to help me would be appreciated.
Thanks.