COM Object

Hello!

I'm using Visual Studio .NET and I want to create a COM component DLL in Visual C++ which's functions could be accessed via ASP's Server.CreateObject. But I DON'T want to use MFC, ATL, etc. I also dont want to use .NET. I just want to use Win32 Generic C++. Is it possible? Could you please tell me how or send a code?

Thanks!

[366 byte] By [TomasSrna] at [2007-12-16]
# 1
It is possible to create a COM component without MFC, ATL, etc. It is not an easy thing to do, though (there's a reason why MFC, ATL were created). If you are determined to do this, the Windows Platform SDK contains a COM programming tutorial that might be helpful. You can download the Platform SDK, install it, open up the \Program Files\Microsoft Platform SDK\Samples\Com\Fundamentals\TutSamp\Tutorial.Htm file as a starting point.

A couple of books on the subject (both are out of print but available used):

http://www.amazon.com/exec/obidos/tg/detail/-/1556156189/qid=1123655673/sr=1-1/ref=sr_1_1/104-9816802-9852714?v=glance&s=books

http://www.amazon.com/exec/obidos/tg/detail/-/1572313498/qid=1123655740/sr=1-1/ref=sr_1_1/104-9816802-9852714?v=glance&s=books

HTH,

-Ron Pihlgren
VC++ Testing

RonPihlgren at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...