Fermat1,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.
EE_AutoDeleter
Main Topics
Browse All TopicsI'm using Visual Studio 2005. Can someone point me to a simple example of how to create a C++ ActiveX component that I can call from a vb6 program? I've found examples via google-search of ActiveX controls, but all I need is a simple component with a few exposed methods and variables.
I've generally created com components via vb6 in the past, and currently need to use c++ (not c#). I can't seem to find the right combination. Should I create an MFC DLL and enable automation? Should I create an ATL Project? Can I add a class and functions/variables from class view, or should I key them in manually?
Ideally I'd like to add reference to the library from vb6, but can always use CreateObject() if neccessary.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Fermat1Posted on 2007-06-06 at 08:34:11ID: 19225964
I have figured out my trouble. I created an ATL project with a simple ATL object. Using class view I can "add method" to the I<classname> class. This automatically generates a corresponding method in the C<classname> class. I had been adding to the C class instead and this will not show up in COM.
Admins, mark this closed.