473,503 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Remote object call from COM component

I have an existing COM component written in C++ that does some Windows
account management stuff. We're moving to Active Directory and rather
than change the whole application, the only changes required are to the
COM component. I want to move the functionality of the COM component to
a remoted C# object, this is straightforward. I also want to make calls
to the remoted object from my original COM component. This is not so
straightforward.

I will confess to having very little experience with Interop. While I
wade through the documentation can anyone tell me whether I'm pushing
solid waste up hill? The code that is failing is the following attempt
to instantiate the remote object:

HttpChannel * channel = new HttpChannel( NULL, NULL, new
BinaryServerFormatterSinkProvider());
ChannelServices::RegisterChannel( channel);
#undef GetObject
IBranchUserLib * branchUser = dynamic_cast<IBranchUserLib
*>(Activator::GetObject(__typeof( IBranchUserLib),
S"https://myworkstation:443/BranchUserLib/BranchUserLib.rem"));

This code is based on the same code I use successfully in a C# test
harness but in this case it fails with error 8007000e (Out of memory
error.)

Any clue would be greatly appreciated. Thanks.

Dave

Dec 21 '05 #1
1 1258
Please ignore this, I have resolved the problem. It was failing because
my test app didn't have a reference to the assembly containing the
IBranchUserLib interface.

Dec 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2634
by: Curt | last post by:
Hi, I have, in vain, tried to create a com object from a remote server. Setup; This is the code that fails. Projekt.ClassName _BOMsg =...
0
4035
by: Andrew S. Giles | last post by:
I just got my first COM interop to work... only to realize that is does not do quite what I want it to do. my little client app (in unmanaged C++) that calls my nice C# objects through COM does...
15
2051
by: JJ | last post by:
A current requirement I am facing is the all business objects be stateless remote components hosted in IIS. I am partial to web services myself. However, it is insisted that IIS hosted remoting be...
4
4660
by: Rohith | last post by:
I need to import dlls that are present in the remote machine. Its a dll written in C that exposes methods. I want to import that dll in my C# application. But that dll is not present in the local...
3
8503
by: alaytin | last post by:
Hello- I am having a problem with a Web Service written in Visual Studio 2005. I have a typed dataset that I created using the Visual Studio 2005 Data Source tool. This retrieves its data from...
3
2199
by: lk | last post by:
I need some help regarding the mechanism to put in place to be able to dynamically update a remote object when the assembly where it is defined is modified, and this whitout having service...
1
5304
by: Paul W | last post by:
I attempted to find the solution and came close (http://blogs.msdn.com/robgruen/archive/2005/01/24/359660.aspx) but cannot go any further. I have an ASP.NET (2003/C#) app that calls a VB 6 DCOM on...
15
7044
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
3
3272
by: gary.bernstein | last post by:
I want to call a singleton getInstance function to retrieve a templatized object without knowing what types were used to create the singleton object in the first call to getInstance. How can I do...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7271
Oralloy
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,...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4998
isladogs
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...
0
4666
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...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
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 ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.