Click here to Skip to main content
15,904,638 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Crash Pin
Monty27-Jan-04 0:32
Monty27-Jan-04 0:32 
GeneralRe: Crash Pin
SiddharthAtw7-Jan-04 0:54
SiddharthAtw7-Jan-04 0:54 
QuestionHow Do I get message ON_UPDATE_COMMAND_UI for CButton Pin
morefalt6-Jan-04 23:36
morefalt6-Jan-04 23:36 
AnswerRe: How Do I get message ON_UPDATE_COMMAND_UI for CButton Pin
Monty27-Jan-04 0:09
Monty27-Jan-04 0:09 
AnswerRe: How Do I get message ON_UPDATE_COMMAND_UI for CButton Pin
фил7-Jan-04 4:26
фил7-Jan-04 4:26 
GeneralRe: How Do I get message ON_UPDATE_COMMAND_UI for CButton Pin
Prakash Nadar7-Jan-04 6:51
Prakash Nadar7-Jan-04 6:51 
Generalurl verifier Pin
murali_utr6-Jan-04 22:22
murali_utr6-Jan-04 22:22 
GeneralRe: url verifier Pin
David Crow7-Jan-04 2:36
David Crow7-Jan-04 2:36 
GeneralBlinking ListControl Items Pin
Meherman6-Jan-04 21:50
Meherman6-Jan-04 21:50 
GeneralRe: Blinking ListControl Items Pin
twing7-Jan-04 18:56
twing7-Jan-04 18:56 
GeneralCSocket problem Pin
y_seval6-Jan-04 21:46
y_seval6-Jan-04 21:46 
GeneralRe: CSocket problem Pin
Antti Keskinen7-Jan-04 1:28
Antti Keskinen7-Jan-04 1:28 
GeneralRe: CSocket problem Pin
Graham Bradshaw7-Jan-04 4:31
Graham Bradshaw7-Jan-04 4:31 
GeneralRe: CSocket problem Pin
Xiangyang Liu 刘向阳7-Jan-04 5:27
Xiangyang Liu 刘向阳7-Jan-04 5:27 
GeneralOutlook Express Pin
BaldwinMartin6-Jan-04 20:46
BaldwinMartin6-Jan-04 20:46 
GeneralRe: Outlook Express Pin
David Crow7-Jan-04 2:40
David Crow7-Jan-04 2:40 
GeneralRe: Outlook Express Pin
BaldwinMartin7-Jan-04 19:52
BaldwinMartin7-Jan-04 19:52 
GeneralRe: Outlook Express Pin
Joel Lucsy7-Jan-04 3:11
Joel Lucsy7-Jan-04 3:11 
GeneralRe: Outlook Express Pin
BaldwinMartin7-Jan-04 19:49
BaldwinMartin7-Jan-04 19:49 
GeneralSmall Help. Pin
Prakash Nadar6-Jan-04 20:41
Prakash Nadar6-Jan-04 20:41 
GeneralRe: Small Help. Pin
Antti Keskinen7-Jan-04 1:44
Antti Keskinen7-Jan-04 1:44 
GeneralRe: Small Help. Pin
shultas7-Jan-04 2:56
shultas7-Jan-04 2:56 
GeneralRe: Small Help. Pin
Prakash Nadar7-Jan-04 6:55
Prakash Nadar7-Jan-04 6:55 
GeneralRe: Small Help. Pin
shultas7-Jan-04 11:16
shultas7-Jan-04 11:16 
Okay cool. Then it is using CreateService(). I just wanted to give you an extra idea too. You can make it so when you install your service it automatically sets to start when the computer starts. (instead of having to run the service manager and do that yourself) The default (using the wizard) is not to do that (starts only on demand from service manager is the default). It's a small change in your code to make that happen too. You'll look in the code under the Install() method.
SC_HANDLE hService = ::CreateService( ... look for that line, and where it says SERVICE_DEMAND_START ... just change that to one of the ones below. (such as SERVICE_AUTO_START)

dwStartType
[in] Service start options. This parameter can be one of the following values. Type Meaning
SERVICE_AUTO_START A service started automatically by the service control manager during system startup.
SERVICE_BOOT_START A device driver started by the system loader. This value is valid only for driver services.
SERVICE_DEMAND_START A service started by the service control manager when a process calls the StartService function.
SERVICE_DISABLED A service that cannot be started. Attempts to start the service result in the error code ERROR_SERVICE_DISABLED.
SERVICE_SYSTEM_START A device driver started by the IoInitSystem function. This value is valid only for driver services.

GeneralSetActiveView Pin
skylonely6-Jan-04 20:29
skylonely6-Jan-04 20:29 

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.