Click here to Skip to main content
16,007,443 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: loading registry file programatically Pin
act_x1-Mar-08 3:31
act_x1-Mar-08 3:31 
GeneralRe: loading registry file programatically Pin
Michael Schubert29-Feb-08 21:20
Michael Schubert29-Feb-08 21:20 
GeneralGetting row from a Text file Pin
msogun29-Feb-08 15:16
msogun29-Feb-08 15:16 
GeneralRe: Getting row from a Text file Pin
David Crow29-Feb-08 16:57
David Crow29-Feb-08 16:57 
GeneralRe: Getting row from a Text file Pin
John R. Shaw1-Mar-08 6:44
John R. Shaw1-Mar-08 6:44 
GeneralRe: Getting row from a Text file Pin
msogun1-Mar-08 10:30
msogun1-Mar-08 10:30 
GeneralActivate Process on Remote Machine Pin
Bram van Kampen29-Feb-08 12:25
Bram van Kampen29-Feb-08 12:25 
GeneralRe: Activate Process on Remote Machine Pin
Gary R. Wheeler1-Mar-08 1:44
Gary R. Wheeler1-Mar-08 1:44 
You've got two problems here. First, how to initiate a process on the target machine. Second, how to communicate parameters to that process, and to get the results back.

Initiating the process:

- Run a service on the target machine. The application runs continuously.

- Use DCOM (distributed COM), which uses the Windows RPC (Remote Procedure Call) mechanism.

- Use the Task Scheduler to start the application remotely.

All three of these options require that you pre-install software of some kind on the target machine. If you want to load and execute arbitrary code on the target machine, that's more difficult.

Communication mechanisms:

- Files in shared folders. Write a parameter file to a shared folder. The verification application reads it and writes a results file, which your local application then reads. Synchronization with this technique can be awkward.

- DCOM. DCOM includes the ability to pass data between the client and server.

- TCP/IP sockets; define your own messages to pass data back and forth.

Any of the initiation techniques can be used with any of the communication mechanisms. Naturally, if you're using DCOM to initiate the process, the easiest way to pass data back and forth is by using DCOM to pass the data as well.

I've used all of these methods at one time or another. They each have strengths and weaknesses. DCOM is the simplest from your application's point of view (DCOM calls look like ordinary function calls), but it has the worst error handling of all. The service and TCP/IP connection combination is the most robust and offers the best performance, but also takes the most effort to get working.

Software Zen: delete this;
Fold With Us![^]

GeneralRegistry Pin
Bram van Kampen29-Feb-08 12:14
Bram van Kampen29-Feb-08 12:14 
GeneralRe: Registry Pin
Gary R. Wheeler1-Mar-08 1:54
Gary R. Wheeler1-Mar-08 1:54 
GeneralRe: Registry Pin
Bram van Kampen6-Mar-08 13:44
Bram van Kampen6-Mar-08 13:44 
GeneralRe: Registry Pin
Gary R. Wheeler7-Mar-08 7:35
Gary R. Wheeler7-Mar-08 7:35 
GeneralRe: Registry Pin
Bram van Kampen7-Mar-08 15:10
Bram van Kampen7-Mar-08 15:10 
GeneralRe: Registry Pin
Gary R. Wheeler8-Mar-08 0:14
Gary R. Wheeler8-Mar-08 0:14 
GeneralRe: Registry Pin
Bram van Kampen8-Mar-08 10:14
Bram van Kampen8-Mar-08 10:14 
Generalneed a good method for popping between dialogs [modified] Pin
littleGreenDude29-Feb-08 9:47
littleGreenDude29-Feb-08 9:47 
GeneralRe: need a good method for popping between dialogs Pin
led mike29-Feb-08 11:16
led mike29-Feb-08 11:16 
GeneralRe: need a good method for popping between dialogs Pin
littleGreenDude3-Mar-08 3:19
littleGreenDude3-Mar-08 3:19 
GeneralRe: need a good method for popping between dialogs Pin
littleGreenDude3-Mar-08 4:20
littleGreenDude3-Mar-08 4:20 
GeneralRe: need a good method for popping between dialogs Pin
led mike3-Mar-08 7:26
led mike3-Mar-08 7:26 
GeneralRe: need a good method for popping between dialogs Pin
littleGreenDude3-Mar-08 8:45
littleGreenDude3-Mar-08 8:45 
GeneralRe: need a good method for popping between dialogs Pin
led mike3-Mar-08 9:49
led mike3-Mar-08 9:49 
GeneralRe: need a good method for popping between dialogs Pin
littleGreenDude4-Mar-08 3:13
littleGreenDude4-Mar-08 3:13 
GeneralRe: need a good method for popping between dialogs Pin
led mike4-Mar-08 5:49
led mike4-Mar-08 5:49 
GeneralRe: need a good method for popping between dialogs Pin
littleGreenDude4-Mar-08 3:35
littleGreenDude4-Mar-08 3:35 

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.