Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: set this object to null Pin
Matglas16-Apr-07 3:42
Matglas16-Apr-07 3:42 
QuestionRichtext Box undo Pin
7116-Apr-07 2:42
7116-Apr-07 2:42 
AnswerRe: Richtext Box undo Pin
Pete O'Hanlon16-Apr-07 2:50
mvePete O'Hanlon16-Apr-07 2:50 
QuestionC# Threading Controls on a Form Pin
ATCsharp16-Apr-07 2:41
ATCsharp16-Apr-07 2:41 
AnswerRe: C# Threading Controls on a Form Pin
Martin#16-Apr-07 2:46
Martin#16-Apr-07 2:46 
GeneralRe: C# Threading Controls on a Form Pin
ATCsharp16-Apr-07 2:52
ATCsharp16-Apr-07 2:52 
AnswerRe: C# Threading Controls on a Form Pin
Leslie Sanford16-Apr-07 3:51
Leslie Sanford16-Apr-07 3:51 
Questionconverting C++ pseudo-code to C#.NET [modified] Pin
Software_Specialist16-Apr-07 1:50
Software_Specialist16-Apr-07 1:50 
Hi all,
i am writing an application to communicate between local and remote machine using STAF tool.
I can have a one way communcation but i want to have a both way communication. Like local machine abc.exe runs def.exe over remote machine and then remote machine goes back to local machine to ask what task to perform and then local exe says calc.exe to run and remote machine performs that.
So below is the psueudo code to achieve this but could any one help me out in converting this to C#.NET. i tried this out but i am getting exception at the moment. So here is the psuedo code


abc.exe (started by machineA)

-- STAFHandle::create("ABCApp", handle);
-- handle->submit("machineB", "PROCESS", "START COMMAND def.exe");
-- handle->submit("local", "QUEUE", "GET WAIT");
---- when the "ReadyForInput" message is received from DEFApp,
----- handle->submit("machineB", "QUEUE", "QUEUE NAME DEFApp MESSAGE Start:Calc");
---- when the "Finished" message is received from DEFApp, continue to next executable to run and queue another message to DEFApp, etc...

def.exe (started, by abc.exe, on machineB)

-- STAFHandle::create("DEFApp", handle);
-- handle->submit("machineA", "QUEUE", "QUEUE NAME ABCApp MESSAGE ReadyForInput");
-- handle->submit("lcoal", "QUEUE", "GET WAIT");
--- when the "Start" message is received from ABCApp, parse the program to run (Calc)
---- handle->submit("local", "PROCESS", "START COMMAND Calc.exe");
---- when Calc.exe completes,
----- handle->submit("machineA", "QUEUE", "QUEUE NAME ABCApp MESSAGE Finished:Calc");

//submit function is already created with parameters which submits the command to local or remote machine.

Thanks a lot.
SS


-- modified at 8:05 Monday 16th April, 2007
AnswerRe: converting C++ pseudo-code to C#.NET Pin
Stefan Troschuetz16-Apr-07 2:20
Stefan Troschuetz16-Apr-07 2:20 
GeneralRe: converting C++ pseudo-code to C#.NET Pin
Software_Specialist16-Apr-07 2:43
Software_Specialist16-Apr-07 2:43 
AnswerRe: converting C++ pseudo-code to C#.NET Pin
sulabh202016-Apr-07 2:24
sulabh202016-Apr-07 2:24 
GeneralRe: converting C++ pseudo-code to C#.NET Pin
Software_Specialist16-Apr-07 3:39
Software_Specialist16-Apr-07 3:39 
QuestionWindows Scheduled Tasks Pin
karthik_dotnet116-Apr-07 1:38
karthik_dotnet116-Apr-07 1:38 
AnswerRe: Windows Scheduled Tasks Pin
kubben16-Apr-07 2:13
kubben16-Apr-07 2:13 
Questionmissing Create Class Diagram option from ADD New Item Pin
Saira Tanwir16-Apr-07 1:30
Saira Tanwir16-Apr-07 1:30 
AnswerRe: missing Create Class Diagram option from ADD New Item Pin
sulabh202016-Apr-07 1:36
sulabh202016-Apr-07 1:36 
AnswerRe: missing Create Class Diagram option from ADD New Item Pin
Saira Tanwir16-Apr-07 1:42
Saira Tanwir16-Apr-07 1:42 
GeneralRe: missing Create Class Diagram option from ADD New Item Pin
sulabh202016-Apr-07 1:44
sulabh202016-Apr-07 1:44 
AnswerRe: missing Create Class Diagram option from ADD New Item Pin
Saira Tanwir16-Apr-07 1:47
Saira Tanwir16-Apr-07 1:47 
GeneralRe: missing Create Class Diagram option from ADD New Item Pin
sulabh202016-Apr-07 1:49
sulabh202016-Apr-07 1:49 
AnswerRe: missing Create Class Diagram option from ADD New Item Pin
Saira Tanwir16-Apr-07 1:55
Saira Tanwir16-Apr-07 1:55 
GeneralRe: missing Create Class Diagram option from ADD New Item Pin
sulabh202016-Apr-07 2:16
sulabh202016-Apr-07 2:16 
AnswerRe: missing Create Class Diagram option from ADD New Item Pin
sulabh202016-Apr-07 2:22
sulabh202016-Apr-07 2:22 
GeneralRe: missing Create Class Diagram option from ADD New Item Pin
Pete O'Hanlon16-Apr-07 2:27
mvePete O'Hanlon16-Apr-07 2:27 
AnswerRe: missing Create Class Diagram option from ADD New Item Pin
Dave Kreskowiak16-Apr-07 3:51
mveDave Kreskowiak16-Apr-07 3:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.