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.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mark_sAuthor Commented:
I forgot to mention I'm using MSVC++ 6
1. Use COM DLL server;
2. Use ATL wizard to building COM
3. Do not use MFC;

Examples :
MSDN and Visual Studio

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

Examples of building COM servers :

MSDN and Visual Studio (samples) 

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.