tags:

views:

60

answers:

2
+3  Q: 

Intro to COM DLL

Before you tell me "google it" - hear me out. I come from C++ & Perl/Python (on Linux) background but I have a few projects coming up where I have to jump in to Windows development. Specifically creating some COM DLLs (not .Net). BTW, after reading some resources, I do have basic idea of what COM & what DLL is.

I tried to search on Google, but most of the tutorials I encountered assumed some Windows dev experience or at least that is how it seemed to me. So, I was wondering if some one went through a similar path & could probably point in a direction that'd help me get jump started on developing COM DLLs. I have access to VS2005. Thanks.

+1  A: 

When programming in VS try Create a COM Visible Component

astander
+1  A: 

The "no .NET" requirement forces you to write code in unmanaged C++. COM has a pretty steep learning curve, flattened somewhat by using ATL. At least will will help you get the basics right. VS2005 has built-in class wizards to generate the boilerplate code you'll need and keep you code and the IDL in sync. You'll need a good COM book (hard to find) and Chris Sells' ATL Internals.

Hans Passant
@nobugz: the way I read it wasn't that he can't use .NET, but that he needs to create a COM DLL and not a ".NET DLL". That is, he needs to use COM rather than creating "normal" code.
John Saunders
John
@John, that's not accurate. The COM interop support will automatically bootstrap the CLR for you when you use [ComVisible(true)]. It's going to be a wholeheckofalot easier to get going then ATL.
Hans Passant
@nobugz, thank you for that information. Looks like this might be a much better alternative for me.
John