LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple instance of an executable

Hello,

I'll try to be as clear as possible.

I'm writing  a program that emulates a DDE server and I want to be able to run multiple instances of that program.
At the beginning of the program, I ask the user to input the name of the DDE Server to emulate and I want to see in the task manager my instances of program with different names, ideally the name given to the DDE Server.
Has anyone an idea ?
Thanks in advance.

Franck.
0 Kudos
Message 1 of 3
(3,331 Views)

Hello Franck.

Here is a possible solution:

  1. Download and install the free Sysinternals Suite from Microsoft
  2. Run the included Process Explorer utility procexp.exe
  3. In Process Explorer, select View / Select Columns, and check the Window Title box
  4. In your application, after the user has entered the server name, call SetSystemAttribute (ATTR_TASKBAR_BUTTON_TEXT, ddeServerName);
  5. The entered name should appear in the Process Explorer Window Title column

Good luck.

Colin.

Message 2 of 3
(3,309 Views)
Hello Colin,

It does what I want.
Thank you for your help.

Franck.
0 Kudos
Message 3 of 3
(3,287 Views)