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). 
CoCreateInstance( ) is used to create an instance of a COM object.  That is, the client side will use it instead of the server side.  As a COM object developer, you'll be developing at server side (because you're writing a COM object) but the ASP internal code will be the client side (because it will be using your COM object.)
 
For a bit of a guide on the client side of COM, check out http://www.beginthread.com/Article/Ehsan/Client%20COM/. 
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.
OK.  Do yourself a favor, and start using ATL.  MFC's support in developing COM objects is poor to say at least, if you ask me.
 
There's a good ATL tutorial in the MSDN.  Make sure you check it out first.  But it barely touches the surface of the sea of tricks you can do in ATL.  For more thorough guide, check out "Inside ATL" by George Shepherd and Brad King, which is a great book.  You can find a lot of information in the MSDN ATL samples and documentation as well.
 
There's a dedicated ATL list at DevelopMentor: http://discuss.develop.com You may want to subscribe to that list as well if you need more help.
 
BTW, ATL has something called an ASP component.  I'm not sure about what it is because I've never used it, but maybe it might help you.
Freedom from fever is still far from being knowledge! Refrigerated spirits I do not believe in. He who cannot lie, does not know what truth is.
-Thus Spoke Zarathustra, F. W. Nietzsche
_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to