Hi

I need to write a DLL that can be called from an asp page. From reading I understand that this DLL/class has to be registered on the
server. I am under the impression that it has to be a COM object in the DLL. I have not done anything with COM before and am in
need of a starting point. There is a lot of functions in the MSDN for COM but I have found very little in the line of what sequence they
need to be used. A lot of examples that I have found appear only to use a COM object but not many appear to create a COM object.


I have seen CoCreateInstance called in some samples. Is it called when creating a COM object as well as when using one? If called
when creating one, what is the value of REFCLSID rclsid (First Parameter).


Secondly what is the easiest way to start this project. Do I use ATL (another new one for me) or is it possible to do this without ATL..
I would prefer not to use MFC in this project.


Waffle aside, what I am looking for is a place to start to be able to take hold of this task and get started. Once going I am sure it will be
an interesting learning curve.

Yes, it is a COM DLL you need. ATL is the easiest way to go and you are right to not want MFC. That's the easy bit.


COM is a big subject and most people find it very difficult, although it isn't really to do simple stuff. I'd recomend you get a good reference such as Beginning ATL Programming from Wrox Press.

If you have some more details of what you want to do I may be able to knock you up and example project. Which version of MSVC are you using?

Regards
Paul

Paul Grenyer
email: [EMAIL PROTECTED]
web: http://www.paulgrenyer.co.uk
Elephant: http://www.paulgrenyer.dyndns.org/elephant/

I put my hand upon the lever, said let it rock and let it roll.


_______________________________________________ msvc mailing list [EMAIL PROTECTED] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.

Reply via email to