Click here to Skip to main content
11,931,584 members (59,539 online)
Rate this:
Please Sign up or sign in to vote.
See more: VC8.0 C++
How to create a process in windows service. in the OnStart() function that should connect
the system to the remote system using its IP and Port Number..
Posted 24-Jan-11 21:44pm
SAKryukov 25-Jan-11 2:48am
OnStart actually happens after the service process is started. Do you want to create another one?! :-)
As to the connection to remote system, yes, it could be done from OnStart(), so what?
Indivara 25-Jan-11 2:51am
I assumed he meant, "How do I create a process that connects to another system in OnStart() of a windows service".

My other job is reading tea leaves.
Gokulnath007 25-Jan-11 2:49am
After the service starts, it should connect the remote system whose IP and Port is known.
Gokulnath007 25-Jan-11 2:52am
SAKryukov.. Could you please explain how to connect the remote system.
with codes. or examples
Gokulnath007 25-Jan-11 3:06am
Indivara.. you are correct.. thats what am looking for...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

SAKryukov 25-Jan-11 13:53pm
Creating another process out of service? Hm... bad design idea, to say the least. Depending on what this process is supposed to do, can be different problems...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 25 Jan 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100