Click here to Skip to main content
11,803,861 members (78,594 online)
Rate this: bad
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 20:44pm
SAKryukov at 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 at 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 at 25-Jan-11 2:49am
After the service starts, it should connect the remote system whose IP and Port is known.
Gokulnath007 at 25-Jan-11 2:52am
SAKryukov.. Could you please explain how to connect the remote system.
with codes. or examples
Gokulnath007 at 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 at 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
0 OriginalGriff 450
1 CPallini 320
2 F-ES Sitecore 240
3 Sergey Alexandrovich Kryukov 234
4 CHill60 220
0 OriginalGriff 3,000
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,755
4 Richard MacCutchan 1,187

Advertise | Privacy | Mobile
Web03 | 2.8.151002.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