Click here to Skip to main content
15,902,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a typical problem Pin
Prog Mmer22-Apr-03 21:43
Prog Mmer22-Apr-03 21:43 
GeneralRe: a typical problem Pin
Prog Mmer22-Apr-03 21:46
Prog Mmer22-Apr-03 21:46 
QuestionHow to highlight items in CTreeCtrl? Pin
Charles Liu22-Apr-03 18:40
Charles Liu22-Apr-03 18:40 
AnswerRe: How to highlight items in CTreeCtrl? Pin
Anonymous22-Apr-03 20:13
Anonymous22-Apr-03 20:13 
GeneralHighlight items in CTreeCtrl Pin
Charles Liu22-Apr-03 18:37
Charles Liu22-Apr-03 18:37 
GeneralRe: Highlight items in CTreeCtrl Pin
Rage22-Apr-03 20:29
professionalRage22-Apr-03 20:29 
GeneralAny body know error 1053 while starting service. Pin
harinath22-Apr-03 18:17
professionalharinath22-Apr-03 18:17 
GeneralRe: Any body know error 1053 while starting service. Pin
harinath22-Apr-03 18:48
professionalharinath22-Apr-03 18:48 
my purpose is to start a service which will put an icon in system tray.
and I already explained the problem.
now i did minor modification.
i added SERVICE_INTERACTIVE_PROCESS also for the 5th parameter of Create parameter.
<br />
	SC_HANDLE schService;<br />
    schService = CreateService( <br />
        schSCManager,              // SCManager database <br />
        lpszServiceName,              // name of service <br />
		lpszDisplayName,           // service name to display <br />
        SERVICE_ALL_ACCESS,        // desired access <br />
        SERVICE_WIN32_OWN_PROCESS| SERVICE_INTERACTIVE_PROCESS, // service type <br />
        SERVICE_DEMAND_START,      // start type <br />
        SERVICE_ERROR_NORMAL,      // error control type <br />
        lpszBinaryPathName,        // service's binary <br />
        NULL,                      // no load ordering group <br />
        NULL,                      // no tag identifier <br />
        NULL,                      // no dependencies <br />
        NULL,                      // LocalSystem account <br />
        NULL); // no password <br />


now it seems service is starting (i can see icon on system tray but after a minute it is diappearing and i am getting the same old error (1053)
same thing through program and manually also.
any more ideas pls


Harinath Reddy
HOneywell Technology Solutions Lab,
Bangalore,
India-560076
harinath@vandemataram.com
GeneralRe: Any body know error 1053 while starting service. Pin
Anders Molin23-Apr-03 0:56
professionalAnders Molin23-Apr-03 0:56 
GeneralRe: Any body know error 1053 while starting service. Pin
harinath23-Apr-03 1:31
professionalharinath23-Apr-03 1:31 
GeneralMatrices Pin
Albedo22-Apr-03 16:42
Albedo22-Apr-03 16:42 
GeneralRe: Matrices Pin
imsniper23-Apr-03 0:00
imsniper23-Apr-03 0:00 
GeneralRe: Matrices Pin
Albedo23-Apr-03 3:29
Albedo23-Apr-03 3:29 
GeneralRe: Matrices Pin
David Chamberlain23-Apr-03 9:28
David Chamberlain23-Apr-03 9:28 
GeneralData packing libraries Pin
progman22-Apr-03 13:50
progman22-Apr-03 13:50 
GeneralRe: Data packing libraries Pin
imsniper23-Apr-03 21:34
imsniper23-Apr-03 21:34 
GeneralProblem drawing icon with shadow in XP Pin
Mathias S.22-Apr-03 13:22
Mathias S.22-Apr-03 13:22 
GeneralRe: Problem drawing icon with shadow in XP - Solved! Pin
Mathias S.22-Apr-03 22:29
Mathias S.22-Apr-03 22:29 
Generalfloat number comparision Pin
act_x22-Apr-03 11:52
act_x22-Apr-03 11:52 
GeneralRe: float number comparision Pin
Maximilien22-Apr-03 12:03
Maximilien22-Apr-03 12:03 
GeneralRe: float number comparision Pin
Anonymous22-Apr-03 12:21
Anonymous22-Apr-03 12:21 
GeneralRe: float number comparision Pin
Phil Hamer22-Apr-03 16:09
Phil Hamer22-Apr-03 16:09 
GeneralRe: float number comparision Pin
Anonymous22-Apr-03 16:03
Anonymous22-Apr-03 16:03 
GeneralOnContextMenu Shows up without text Pin
allcodeluver22-Apr-03 11:14
allcodeluver22-Apr-03 11:14 
GeneralRe: OnContextMenu Shows up without text Pin
valikac22-Apr-03 11:56
valikac22-Apr-03 11:56 

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.