Link to home
Start Free TrialLog in
Avatar of JeromZ
JeromZ

asked on

Accessing VB dll from VC application

Hi
I am wondering how is it possible to access a dll or an ocx created in VB by an application created in VC++?
Thanks!!!
Avatar of Erick37
Erick37
Flag of United States of America image

"HOWTO: Access a Visual Basic ActiveX DLL from Visual C++"

http://support.microsoft.com/support/kb/articles/Q194/8/73.ASP
In VC++ if you build an MFC Executable, on your dialog resources if you right click you can select Insert ActiveX control, which allows you to choose an ActiveX control to drop on the form.

Gordon
ASKER CERTIFIED SOLUTION
Avatar of RPoate
RPoate

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 JeromZ
JeromZ

ASKER

Thanks for the info guys....but do you guys know of any sites or books which show the various ways of accessing VB dll...such as accessing properties or things that have to take care of in C++ which dun have to take care of in VB...
cos i got a violation error .... due to Set MyNameSpace = Application.GetNamespace("MAPI")
Set MyAddressLists = MyNameSpace.AddressLists
I wonder why and is there any documentation for this?
I am not familiar with C++.

CH