473,411 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Connecting to a legacy RPC server

Ben

I have a C# application that I would like to modify to communicate
with a legacy RPC server to get some data. I have the IDL for that
server. Is there an IDL compiler that will give me C# code? What are
my options here?

Thanks,
Ben

Oct 10 '07 #1
3 2015
Ben,

Is this a CORBA component or a distributed COM component (DCOM/COM+)?

If it is the latter, then you should be able to compile the IDL using
MIDL and then use the type library importer to create a managed
representation. Then, in code, you would call the static GetTypeFromProgID
or GetTypeFromCLSID to get the type that is associated with the
implementation of that interface. Pass that to the static CreateInstance
method on the Activator class, and then cast the return value to your
interface.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ben" <be******@gmail.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
>
I have a C# application that I would like to modify to communicate
with a legacy RPC server to get some data. I have the IDL for that
server. Is there an IDL compiler that will give me C# code? What are
my options here?

Thanks,
Ben

Oct 10 '07 #2
"Ben" <be******@gmail.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
>
I have a C# application that I would like to modify to communicate
with a legacy RPC server to get some data. I have the IDL for that
server. Is there an IDL compiler that will give me C# code? What are
my options here?

Thanks,
Ben

NO there isn't, legacy RPC (and IDL) is meant to be used from C only. All
you can do is build a managed wrapper using C++/CLI and use this one as an
interface between managed code and your unmanaged RPC server.

Willy.
Oct 10 '07 #3
Ben
On Oct 10, 10:34 am, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.bewrote:
>
All you can do is build a managed wrapper
I was afraid of that. :sigh: Thanks for the responses.

-Ben

Oct 10 '07 #4

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

Similar topics

0
by: Google Mike | last post by:
After a lot of thought and research, and playing with FreeTDS and InlineTDS, as well as various ODBC connections, I have determined that the fastest and cheapest way to get up and going with PHP on...
3
by: Lloyd | last post by:
I'm currently creating the next version of our company's education product, and it seems that we still need to support legacy hardware & software (Win 95/Pentium-1, MacOS 8). To that end, we've been...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
0
by: cj.snead | last post by:
Hello, I am having trouble connecting to a remote named instance of SQL Server via Pocket PC. I have had absolutely no luck connecting with VS 2005 (even to a default instance), so I wen't back...
6
by: Todd Brewer | last post by:
Windows Server 2000 ASP.NET 2.0 SQL Server 2000 (on a physically seperate server) I moved an ASP.NET 2.0 application from a development server to production, and am getting the following error:...
1
by: omantawy | last post by:
Hi, I have some legacy ASP web applications that use an unmanaged COM component to connect to a third party application. The third part application has moved to the managed code in the current...
12
by: Light | last post by:
Hi all, I posted this question in the sqlserver.newusers group but I am not getting any response there so I am going to try it on the fine folks here:). I inherited some legacy ASP codes in my...
10
by: mairhtin o'feannag | last post by:
Hello, I'm having problems connecting to my new v9 db box. The pertinent information is below: DB2_db2inst1 60000/tcp DB2_db2inst1_1 60001/tcp DB2_db2inst1_2 60002/tcp DB2_db2inst1_END...
0
by: aboutjav.com | last post by:
Hi, I need some help. I am getting this error after I complete the asp.net register control and click on the continue button. It crashed when it tries to get it calls this Profile property ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
jinu1996
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...
0
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.