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 2 1545
Here's a good starting point: http://msdn.microsoft.com/library/de...cominterop.asp
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
The man who questions opinions is wise.
The man who quarrels with facts is a fool.
"MR" <co******@newsg roup.nospam> wrote in message
news:eO******** ******@TK2MSFTN GP05.phx.gbl... 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
MR wrote: 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.
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: James Marshall |
last post by:
I'm writing a library where I want to override document.write(), but for
all document objects; thus, I want to put it in the prototype. I tried
Document.prototype.write= my_doc_write ;
but it didn't work. I discovered that this seemed to work:
HTMLDocument.prototype.write= my_doc_write ;
Why does HTMLDocument work here but not Document? Will this second
|
by: Arash Dejkam |
last post by:
Hi All,
Is it possible to write on an <OBJECT type="text/html"> using
document.write() from within the html containing that tag the way we write
on a popup window? I couldn't do that after a lot of try.
Thanks in advance.
|
by: Stumped and Confused |
last post by:
Hello,
I really, really, need some help here - I've spent hours trying to find a
solution.
In a nutshell, I'm trying to have a user input a value in form's
textfield. The value should then be assigned to a variable and output
using document.write.
(Note, there is no submit button or other form elements. Basically
|
by: Steve - DND |
last post by:
We are continually receiving timeout, and "Unable to
write data to the transport connection" errors while using the
System.Net.HttpWebRequest class from an ASP.Net web page. Below are the two
errors we continue to
receive:
Source: System
Message: The operation has timed-out.
Target Function: System.Net.WebResponse GetResponse()
|
by: Farooq Khan |
last post by:
why does Response.Write in a method of code-beind class when called from
inpage code (i.e in <%---%>), after creating object of that class, fails
when called
while it works perfectly ok while calling the same method same way except
for creating object instead directly calling the method?
i get this when trying to do that:-
**************************************************
Response is not available in this context.
Description: An...
| |
by: Steve |
last post by:
Hello,
If I instantiate a class object from a form I would like
to be able to write to a label on the calling form
something like
"hello from class object"
from within a subroutine inside the class object. Is this
possible?
|
by: DC |
last post by:
The problem
I'm using the .NET GridView and FormView objects for the first time and
im getting the error "An OleDbParameter with ParameterName '@ID' is not
contained by this OleDbParameterCollection" whenI try to write a new record.
Delete and Modify work fine its just the add record function causes the
error.
|
by: =?Utf-8?B?RGFtZW9u?= |
last post by:
Hi -
I am attempting to write lines to a file at high volume, multiple threads.
Here is my scenario:
(initial "WriteToFile" object created via a parent multithreaded process,
which receives files, can call custom code for each file received - much like
BizTalk)
1. Receive multiple files, each file received creates a "WriteToFile" object
|
by: =?Utf-8?B?YW5rMmdv?= |
last post by:
Hi,
Thanks in advance for reading this.
Not sure where to post this question, but I hope someone in here can help.
Trying to write to Event Log in VS 2005 (.NET 2.0) using Enterprise Library
2.0
on a XP Pro SP2 Machine
|
by: |
last post by:
Hi all,
I want to create a method that does the following:
1) Programmatically instantiate a new XmlDataSource control
2) For each file in a named directory, make a "FileSystemItem" element
3) On each FileSystemItem Element, make two child nodes, one with the file
name, one with the file size. ie.
<filesystemitems>
<filesystemitem>
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |