Write COM Object in C#

M

MR

i am developing a client C# application that utilized a legacy COM object.
For development, I cannot use the object because it has specific hardware
requirements. Therefore i would like to write a stub or "emulator" for this
COM object, preferably i C# but C++ or VB.NET would work too.
The idea is to be able to use this object in development, then in production
(when the hardware is available) just regsvr32 the "real" object and use
that instead. this means that the emulator object probably needs the same
GUID and methods , etc as the "real" object
is there a document or other source that details the development steps that
i would need to take to accomplish this?
thanks
m
 
J

John A. Bailo

MR said:
i am developing a client C# application that utilized a legacy COM object.
For development, I cannot use the object because it has specific hardware
requirements. Therefore i would like to write a stub or "emulator" for this
COM object, preferably i C# but C++ or VB.NET would work too.

When you say "cannot use it" I assume that when it runs, it loads some
set of resources that are too large for your workstation.

Well, you can always just register the object on your development
machine, add a reference to your c# project -- but not run it -- OR,
comment out the code that accesses it and put in dummy results.

Then, when doing a full on test, set up the real code and test on your
deployment server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top