Automation question

I would like to distribute a class for others to use, but not distribute the code. How is this achieved? I think that I will either have to distribute a DLL with automation enabled, or distribute a header file and associated lib file, but I've tried both methods and can't manage to use the class in another project.
I don't think that I should be using the MFC ActiveX control wizard, as the class does not have a view or display anything.

Can anybody tell me the steps that I should follow to do this?

thanks in advance.
Mark
mark_sAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
arikkaConnect With a Mentor Commented:
COM solution :
-Use COM DLL server;
-Use ATL wizard to building COM server;
-Do not use MFC;

C++ solution:
As to distribute a header file and associated lib file - header file consists not only the interface, it has
also and implementation (data stuff,
inline method...)

This is one of the great problem COM
solves.

Examples of building COM servers :

MSDN and Visual Studio (samples)
http://www.codeguru.com/atl/index.shtml
http://www.cetus-links.org/oo_ole.html 
0
 
mark_sAuthor Commented:
I forgot to mention I'm using MSVC++ 6
0
 
arikkaCommented:
1. Use COM DLL server;
2. Use ATL wizard to building COM
   server;
3. Do not use MFC;

Examples :
MSDN and Visual Studio

http://www.cetus-links.org/oo_ole.html

0
All Courses

From novice to tech pro — start learning today.