Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VS2005 Pin
toxcct24-Feb-07 0:52
toxcct24-Feb-07 0:52 
GeneralRe: VS2005 Pin
Nibu babu thomas23-Feb-07 3:25
Nibu babu thomas23-Feb-07 3:25 
AnswerRe: VS2005 Pin
Mark Salsbery23-Feb-07 8:45
Mark Salsbery23-Feb-07 8:45 
GeneralRe: VS2005 Pin
Hamid_RT23-Feb-07 19:24
Hamid_RT23-Feb-07 19:24 
QuestionWin32 Application for SetPrinterDataEx() Pin
Pankaj.Jain22-Feb-07 23:02
professionalPankaj.Jain22-Feb-07 23:02 
QuestionWindows Programming and Vista Pin
mehmetned22-Feb-07 22:59
mehmetned22-Feb-07 22:59 
AnswerRe: Windows Programming and Vista Pin
KarstenK23-Feb-07 2:05
mveKarstenK23-Feb-07 2:05 
QuestionService install problem. Pin
david bagaturia22-Feb-07 22:18
david bagaturia22-Feb-07 22:18 
Hi all.

I write service and now I am writing API(I use MFC Dialog form).
This API must install my service, but I have problem with it.
Wen I write:
<br />
  SC_HANDLE schService;<br />
<br />
  <br />
  SC_HANDLE schSCManager;<br />
<br />
  LPQUERY_SERVICE_CONFIG  lpBuf;<br />

Or
<br />
      schService = CreateService(<br />
        schSCManager,<br />
        MYServiceName,<br />
        MYServiceName,<br />
        SERVICE_ALL_ACCESS,<br />
        SERVICE_WIN32_OWN_PROCESS,<br />
        SERVICE_DEMAND_START,<br />
        SERVICE_ERROR_NORMAL,<br />
        "c:\\ntbk2\\src\\service\\small\\debug\\small.exe",<br />
        NULL,<br />
        NULL,<br />
        "",<br />
        NULL,<br />
        NULL);<br />

Compile give me error message.
I include windows.h in my project, but noting. My program can't see thet CreateService() is function or 'LPQUERY_SERVICE_CONFIG' is struct.

I acnt see what I do wrong.
How can I install my service?

Dead | X|
AnswerRe: Service install problem. Pin
prasad_som22-Feb-07 22:27
prasad_som22-Feb-07 22:27 
AnswerRe: Service install problem. Pin
Hamid_RT23-Feb-07 19:27
Hamid_RT23-Feb-07 19:27 
GeneralRe: Service install problem. Pin
david bagaturia23-Feb-07 20:16
david bagaturia23-Feb-07 20:16 
GeneralRe: Service install problem. Pin
Hamid_RT24-Feb-07 0:09
Hamid_RT24-Feb-07 0:09 
QuestionHow to check for installed application Pin
chirag_chauhan22-Feb-07 21:51
chirag_chauhan22-Feb-07 21:51 
AnswerRe: How to check for installed application Pin
Deian22-Feb-07 22:03
Deian22-Feb-07 22:03 
AnswerRe: How to check for installed application Pin
Nibu babu thomas22-Feb-07 22:23
Nibu babu thomas22-Feb-07 22:23 
GeneralRe: How to check for installed application Pin
chirag_chauhan23-Feb-07 0:30
chirag_chauhan23-Feb-07 0:30 
AnswerRe: How to check for installed application Pin
David Crow23-Feb-07 3:01
David Crow23-Feb-07 3:01 
QuestionChange text of header of listCtrl Pin
ensger22-Feb-07 21:14
ensger22-Feb-07 21:14 
AnswerRe: Change text of header of listCtrl Pin
Nibu babu thomas22-Feb-07 22:00
Nibu babu thomas22-Feb-07 22:00 
GeneralRe: Change text of header of listCtrl Pin
ensger22-Feb-07 22:11
ensger22-Feb-07 22:11 
GeneralRe: Change text of header of listCtrl Pin
ensger23-Feb-07 2:49
ensger23-Feb-07 2:49 
GeneralRe: Change text of header of listCtrl Pin
Nibu babu thomas23-Feb-07 3:20
Nibu babu thomas23-Feb-07 3:20 
GeneralRe: Change text of header of listCtrl [modified] Pin
ensger23-Feb-07 5:35
ensger23-Feb-07 5:35 
GeneralRe: Change text of header of listCtrl Pin
Nibu babu thomas23-Feb-07 19:12
Nibu babu thomas23-Feb-07 19:12 
GeneralRe: Change text of header of listCtrl Pin
ensger23-Feb-07 20:14
ensger23-Feb-07 20:14 

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.