D
Daniel Bass
The scenario:
-------------
I've created a simple COM object according to a tutorial I found:
http://www.csharphelp.com/archives/archive281.html
It automatically creates a Type Library (TLB) so that I can hook into the
object using the virtual table provided in the tlb file.
On the development machine, it seems to register the COM into the registry
properly, so I can create an instance of the object (via IDispatch) from
vbscript say (using CreateObject(...) ).
I turned on the option in the config for registering for COM interop.
The problem:
-------------
There's a clean box that I transfer this same script to, and my DLL. But I
can't get it to register on my machine. I've called RegAsm as recommended
for .Net libraries, and that should apparently register is for the COM stuff
as well, but it doesn't work, failing with something like "can't create
component".
Questions:
----------
What is VS.Net doing to register the program on my machine that regasm
isn't?
How to i register this DLL (if this isn't included in the first question)
for use with the IDispatch interface?
-------------
I've created a simple COM object according to a tutorial I found:
http://www.csharphelp.com/archives/archive281.html
It automatically creates a Type Library (TLB) so that I can hook into the
object using the virtual table provided in the tlb file.
On the development machine, it seems to register the COM into the registry
properly, so I can create an instance of the object (via IDispatch) from
vbscript say (using CreateObject(...) ).
I turned on the option in the config for registering for COM interop.
The problem:
-------------
There's a clean box that I transfer this same script to, and my DLL. But I
can't get it to register on my machine. I've called RegAsm as recommended
for .Net libraries, and that should apparently register is for the COM stuff
as well, but it doesn't work, failing with something like "can't create
component".
Questions:
----------
What is VS.Net doing to register the program on my machine that regasm
isn't?
How to i register this DLL (if this isn't included in the first question)
for use with the IDispatch interface?