PC Review


Reply
Thread Tools Rate Thread

Calling function in another .NET executable ???

 
 
=?Utf-8?B?U2hhcm9u?=
Guest
Posts: n/a
 
      27th Jan 2005
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.
 
Reply With Quote
 
 
 
 
BuddyWork
Guest
Posts: n/a
 
      27th Jan 2005
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 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.
>.
>

 
Reply With Quote
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      27th Jan 2005
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" <(E-Mail Removed)> wrote in message
news:2DF9C7B3-8BDF-43DA-AA16-(E-Mail Removed)...
>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.



 
Reply With Quote
 
=?Utf-8?B?U2hhcm9u?=
Guest
Posts: n/a
 
      27th Jan 2005
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: C# Calling Executable or DLL =?Utf-8?B?QWRpdHlhbmFuZCBQYXN1bWFydGhp?= Microsoft C# .NET 0 18th Oct 2006 04:59 AM
Retrieving returnvalue after calling a .Net executable Ries Spruit Microsoft Dot NET 2 3rd Nov 2004 03:31 PM
Calling an executable from .NET Liz Microsoft C# .NET 4 12th May 2004 11:01 AM
calling a C dll or executable from vb.net =?Utf-8?B?UGF1bA==?= Microsoft VB .NET 5 27th Jan 2004 04:38 PM
calling a DOS executable with GUI status window from ASP.NET ?? jason@cyberpine.com Microsoft ASP .NET 1 23rd Oct 2003 09:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:17 PM.