Click here to Skip to main content
15,910,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to resume the file download Pin
Gowrishankar A.22-Apr-03 19:58
Gowrishankar A.22-Apr-03 19:58 
AnswerRe: How to resume the file download Pin
bryce22-Apr-03 20:57
bryce22-Apr-03 20:57 
AnswerRe: How to resume the file download Pin
Redeemer-dk23-Apr-03 1:14
Redeemer-dk23-Apr-03 1:14 
QuestionFont background? Pin
bobthemonkey22-Apr-03 19:28
bobthemonkey22-Apr-03 19:28 
AnswerRe: Font background? Pin
Rage22-Apr-03 20:36
professionalRage22-Apr-03 20:36 
AnswerRe: Font background? Pin
Anonymous22-Apr-03 20:40
Anonymous22-Apr-03 20:40 
GeneralHelp required in MFC Pin
RaajaOfSelf22-Apr-03 19:24
RaajaOfSelf22-Apr-03 19:24 
GeneralMFC-ODBC help!!!! Pin
RaajaOfSelf22-Apr-03 19:21
RaajaOfSelf22-Apr-03 19:21 
QuestionA strange CListCtrl Bug ? Pin
brraj22-Apr-03 19:18
brraj22-Apr-03 19:18 
GeneralButton with Icon on it Pin
Exceter22-Apr-03 18:59
Exceter22-Apr-03 18:59 
Generala typical problem Pin
Prog Mmer22-Apr-03 18:52
Prog Mmer22-Apr-03 18:52 
GeneralRe: a typical problem Pin
PJ Arends22-Apr-03 19:29
professionalPJ Arends22-Apr-03 19:29 
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 

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.