Click here to Skip to main content
15,887,477 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCreating an object using a reference Pin
thelonesquirrely21-Aug-09 8:28
thelonesquirrely21-Aug-09 8:28 
AnswerRe: Creating an object using a reference Pin
Stuart Dootson21-Aug-09 9:48
professionalStuart Dootson21-Aug-09 9:48 
QuestionHow to join two data tables in different database Pin
jiabin_007_love21-Aug-09 7:17
jiabin_007_love21-Aug-09 7:17 
AnswerRe: How to join two data tables in different database Pin
David Crow21-Aug-09 9:24
David Crow21-Aug-09 9:24 
AnswerRe: How to join two data tables in different database Pin
jiabin_007_love21-Aug-09 18:16
jiabin_007_love21-Aug-09 18:16 
AnswerRe: How to join two data tables in different database Pin
David Crow22-Aug-09 16:43
David Crow22-Aug-09 16:43 
GeneralRe: How to join two data tables in different database Pin
jiabin_007_love23-Aug-09 16:22
jiabin_007_love23-Aug-09 16:22 
QuestionHow to get a Windows Service custom Status? [C++/C#] Pin
Shaitan0021-Aug-09 6:59
Shaitan0021-Aug-09 6:59 
I have a created a C# windows service (Serv.exe) which is responsible for performing various tasks at the request of a running application (A.exe), some of these can take long periods of time and I need a way to know the status of my requested operation (running on the service) from the calling application (A.exe).

Currently the way I have started to implement this is by using the ControlService(handle, command, status) to send a custom command to the Service to perform the task being requested, I am also using QueryServiceStatus(handle, status) to get the status of the service from the SCM - so the basic plumbing is there and working.

Now the problem I have is, after sending my ControlService Command (which works fine) the calling application (A.exe) keeps running and, at a certain point, it needs to know if the task it requested of the service is finished or not - therefore I am looking for a way to Query the Service to report a custom status, not the standard running, stopped, pending, paused state of the actual service but the status of the request I made using the ControlService() request.

Is this at all possible?
Any help or hints would be immensily appreciated.

Thanks,
QuestionIntercepting PlaySound Pin
Marc Clifton21-Aug-09 4:38
mvaMarc Clifton21-Aug-09 4:38 
AnswerRe: Intercepting PlaySound Pin
Randor 21-Aug-09 5:07
professional Randor 21-Aug-09 5:07 
QuestionProblem with atlcomcli.h assertion failure Pin
Largo6521-Aug-09 4:19
Largo6521-Aug-09 4:19 
AnswerRe: Problem with atlcomcli.h assertion failure Pin
Stuart Dootson21-Aug-09 10:03
professionalStuart Dootson21-Aug-09 10:03 
QuestionCalling C Functions in Inline Assembly MSDN example doesn't work here Pin
invader8221-Aug-09 4:08
invader8221-Aug-09 4:08 
AnswerRe: Calling C Functions in Inline Assembly MSDN example doesn't work here Pin
Randor 21-Aug-09 4:43
professional Randor 21-Aug-09 4:43 
GeneralRe: Calling C Functions in Inline Assembly MSDN example doesn't work here Pin
invader8221-Aug-09 5:22
invader8221-Aug-09 5:22 
GeneralRe: Calling C Functions in Inline Assembly MSDN example doesn't work here Pin
Randor 21-Aug-09 7:43
professional Randor 21-Aug-09 7:43 
GeneralRe: Calling C Functions in Inline Assembly MSDN example doesn't work here Pin
invader8223-Aug-09 22:33
invader8223-Aug-09 22:33 
Question[Message Deleted] Pin
Gajendra Sharma21-Aug-09 2:28
Gajendra Sharma21-Aug-09 2:28 
Answer[Message Deleted] Pin
Gajendra Sharma21-Aug-09 2:34
Gajendra Sharma21-Aug-09 2:34 
GeneralRe: Can a client socket be bound to an IP address? Pin
Nemanja Trifunovic21-Aug-09 2:55
Nemanja Trifunovic21-Aug-09 2:55 
GeneralRe: Can a client socket be bound to an IP address? Pin
Rajesh R Subramanian21-Aug-09 2:57
professionalRajesh R Subramanian21-Aug-09 2:57 
GeneralRe: Can a client socket be bound to an IP address? Pin
Randor 21-Aug-09 3:06
professional Randor 21-Aug-09 3:06 
GeneralRe: Can a client socket be bound to an IP address? Pin
Gajendra Sharma21-Aug-09 3:09
Gajendra Sharma21-Aug-09 3:09 
QuestionIs it possible to load and use ocx in Vista Session 0? Pin
Sharath C V21-Aug-09 1:56
professionalSharath C V21-Aug-09 1:56 
Questionc++ Inheritance Question Pin
Rudi66621-Aug-09 0:21
Rudi66621-Aug-09 0:21 

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.