views:

91

answers:

2

Hello, I am trying to create an ActiveX controller. I using VS2010 (.Net4) I need to create a COM object (in C#) and have no Idea how to get started (what type of project to use ect.)

Thanks

+1  A: 

You could use a class library project. Declare a type with methods that will be exposed as a COM object.

Make sure that the assembly has been made COM-visible:

alt text

And finally register it using regasm.exe:

regasm.exe /codebase mylib.dll

Now the assembly is exposed as a COM object and the type you declared can be consumed by any client that supports COM.

Darin Dimitrov
+1  A: 
Eyal