473,320 Members | 2,048 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,320 software developers and data experts.

Calling function in another .NET executable ???

I have a .NET executable written in C# (A).
From my own .NET executable also written in C# (B), I need to call some
function in this executable (A). Both executables are at the same computer.
If the other executable (A) was a DLL it would be very simple.
Beside the .NET Remoting, is there another way to do it?

--
Regards
Sharon G.
Nov 16 '05 #1
3 2184
Hello Sharon,

If you want EXE (A) to call EXE (B) then you will need to
use .NET Remoting.

If you convert the EXE (B) to a DLL then EXE (A) will
need to reference the DLL or make a late binding to make
the call to the DLL.

Thanks,
-----Original Message-----
I have a .NET executable written in C# (A).
From my own .NET executable also written in C# (B), I need to call somefunction in this executable (A). Both executables are at the same computer.If the other executable (A) was a DLL it would be very simple.Beside the .NET Remoting, is there another way to do it?

--
Regards
Sharon G.
.

Nov 16 '05 #2
Hi,
Well the process B could use a TCP port , or a named piped (not natively
supported .net IIRC)

If B is a windows program you may send a windows message.
What kind of info you need to transfer?

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Sharon" <Sh****@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
I have a .NET executable written in C# (A).
From my own .NET executable also written in C# (B), I need to call some
function in this executable (A). Both executables are at the same
computer.
If the other executable (A) was a DLL it would be very simple.
Beside the .NET Remoting, is there another way to do it?

--
Regards
Sharon G.

Nov 16 '05 #3
That is what I thought; I’ll guess I’ll use the remoting.
I just want to call to process B that makes motion control action, and this
function should be blocked and unblocked functions.

------
Thanks
Sharon G.
Nov 16 '05 #4

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

Similar topics

5
by: Andrew Slade | last post by:
Hello, I am making calls from one compilation unit to functions in another by pointers and I get the warnings below from gcc on 2.4.x Debian Linux. The executable seems to work fine but the...
5
by: Al the programmer | last post by:
I have a dll that consists of unmanaged C++ routines. I can call a function in the dll from a C++ executable, but not from a C# executable. I am calling an independent function, not a class. C#...
17
by: Bill Grigg | last post by:
I have been successfully calling DLL's using VC++ 6.0 and also using VC++7.1 (.NET). I only mention this because I have never felt comfortable with the process, but nonetheless it did work....
6
by: Marlene Arauz Martin | last post by:
Hello, How's everybody??? I have an aspx. page that is calling an executable,....like this... System.Diagnostics.ProcessStartInfo psi= new System.Diagnostics.ProcessStartInfo();...
2
by: singlal | last post by:
Hi, my question was not getting any attention because it moved to 2nd page; so posting it again. Sorry for any inconvenience but I need to get it resolved fast. Need your help! ...
2
by: Daniel Lidström | last post by:
I'm using a library called fyba. This library reads and writes files in a format called sosi. fyba uses the following code to determine if the calling process has own methods to handle errors,...
5
by: guxu | last post by:
Can anyone tell me the prons and cons having C# program calling an executable or DLL? I always do not like the idea of having one executable calling another executable since I can have more...
15
by: dspfun | last post by:
Hi, Is it possible to print the function name of the calling function? For example, f1() and f2() both calls f3(), in f3() I would like to print the name of the function calling f3() which...
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.