Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

how to start the datasocket in VC++ ?

How to start the data socket in VC++? In my application, i need to link to pc , so in order for me to start running the data socket, is it mean this two pc have to install with measurement studio software? after that, how can i code the server side so that the server pc can get the text file from client's pc?
0 Kudos
Message 1 of 3
(3,111 Views)
Hi,

The DataSocket server is an executable, so you can just lunch it as any other executable. You can use the system commmand or any other way.

Once the server is running you can just use the connect method to start up the communication. You don't need measurement studio in the client machine, all you need is to create create an installer that includes the DataSocket component as any other MStudio controls.

Hope that helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 3
(3,111 Views)
If you are going to have a Measurement Studio application running on the server anyway, you can use the CNiDataSocketServer class to automatically launch the server application when you run your application. The Measurement Studio DataSocket example programs demonstrate CNiDataSocketServer.
0 Kudos
Message 3 of 3
(3,111 Views)