Click here to Skip to main content
15,918,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is there an API to return parent directory Pin
vikas amin4-Sep-08 12:58
vikas amin4-Sep-08 12:58 
QuestionCan I create a process in Windows service in MFC? Pin
laksh220420-Aug-08 3:30
laksh220420-Aug-08 3:30 
QuestionRe: Can I create a process in Windows service in MFC? Pin
led mike20-Aug-08 4:31
led mike20-Aug-08 4:31 
AnswerRe: Can I create a process in Windows service in MFC? Pin
Mark Salsbery20-Aug-08 5:51
Mark Salsbery20-Aug-08 5:51 
GeneralRe: Can I create a process in Windows service in MFC? Pin
led mike20-Aug-08 8:20
led mike20-Aug-08 8:20 
GeneralRe: Can I create a process in Windows service in MFC? Pin
Mark Salsbery20-Aug-08 8:23
Mark Salsbery20-Aug-08 8:23 
GeneralRe: Can I create a process in Windows service in MFC? Pin
laksh220420-Aug-08 21:17
laksh220420-Aug-08 21:17 
GeneralRe: Can I create a process in Windows service in MFC? Pin
Ahmed Charfeddine20-Aug-08 22:25
Ahmed Charfeddine20-Aug-08 22:25 
hello,
you said that you already have the "locator" service that keep control of the other 4 ones.
I think,if possible, that instead of developing another service, the "handler" that would execute a certain code under the scrash event of one of the other 4 services,then just put that code in the "locator", why complicate it ? Of course I suppose here that you have hands on the "locator" source code, something you didn't said.

Regarding the use of createProcess,etc..I wonder why you develop an MFC app
for such thing as to respond to the crashing of an NT service, then may be restart it from using that MFC app.

It is right, your UI wo'nt showup when exectued in context of a service.It's like there is a fictiouness desktop with which services interact I remember myself even to have problem trying to debug a service by trying to catch the TRACEs and log them into an UI application Window.


I am also know that it is said that it is not advised even to try make a service interact with session-wise objects : for example try to communicate something in the desktop of a logged user by the service. Do not even suppose that while your service is running or that when it has crashed that there is a user who is logged that time in order to notify him.


I have something like that : a remote service (developed by means of CUTService : a very good class that helps you write services : it is included in Ultimate TCP/IP you find here in CodeProject) which I control by a remote application which collects performances and key indicators but also with another local service (ie in the same server machine as the first service) which can open local socket channel and do efficient control of the service state..but no interaction with the desktop of the remote server machine)

Anyway..try do something and come here back if there is something to talk about.

Our Philosophy, Mohammed Baqir Al Sadr

GeneralRe: Can I create a process in Windows service in MFC? Pin
Mark Salsbery21-Aug-08 5:55
Mark Salsbery21-Aug-08 5:55 
GeneralRe: Can I create a process in Windows service in MFC? Pin
laksh220425-Aug-08 2:00
laksh220425-Aug-08 2:00 
QuestionAccessing the USB HUman Interface Device properties from the devicemanager Pin
hariakuthota20-Aug-08 3:23
hariakuthota20-Aug-08 3:23 
QuestionAccessing the USB HUman Interface Device properties from the devicemanager Pin
hariakuthota20-Aug-08 3:23
hariakuthota20-Aug-08 3:23 
AnswerRe: Accessing the USB HUman Interface Device properties from the devicemanager Pin
Ștefan-Mihai MOGA20-Aug-08 8:46
professionalȘtefan-Mihai MOGA20-Aug-08 8:46 
QuestionFunction Calling Pin
polopo20-Aug-08 2:36
polopo20-Aug-08 2:36 
AnswerRe: Function Calling Pin
Nathan Going20-Aug-08 2:39
Nathan Going20-Aug-08 2:39 
AnswerRe: Function Calling Pin
David Crow20-Aug-08 3:06
David Crow20-Aug-08 3:06 
AnswerRe: Function Calling Pin
CPallini20-Aug-08 3:20
mveCPallini20-Aug-08 3:20 
AnswerRe: Function Calling Pin
SRKSHOME20-Aug-08 23:50
SRKSHOME20-Aug-08 23:50 
AnswerRe: Function Calling Pin
laksh220425-Aug-08 20:15
laksh220425-Aug-08 20:15 
QuestionXP and Vista Caption bar problem with SetWindowRgn Pin
Nathan Going20-Aug-08 2:27
Nathan Going20-Aug-08 2:27 
AnswerRe: XP and Vista Caption bar problem with SetWindowRgn Pin
Mike Dimmick20-Aug-08 7:05
Mike Dimmick20-Aug-08 7:05 
GeneralRe: XP and Vista Caption bar problem with SetWindowRgn Pin
Nathan Going20-Aug-08 7:10
Nathan Going20-Aug-08 7:10 
QuestionRemove Duplicate Values Pin
NewVC++20-Aug-08 0:54
NewVC++20-Aug-08 0:54 
AnswerRe: Remove Duplicate Values Pin
Rajesh R Subramanian20-Aug-08 1:13
professionalRajesh R Subramanian20-Aug-08 1:13 
GeneralRe: Remove Duplicate Values Pin
NewVC++20-Aug-08 1:20
NewVC++20-Aug-08 1:20 

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.