Click here to Skip to main content
16,011,779 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question regarding elliptical fit to raw data points x, y Pin
Ravi Bhavnani19-Jan-08 6:13
professionalRavi Bhavnani19-Jan-08 6:13 
Generalplaying a .wmv file in an MFC application Pin
goodoljosh198018-Jan-08 8:53
goodoljosh198018-Jan-08 8:53 
GeneralRe: playing a .wmv file in an MFC application Pin
Christian Graus18-Jan-08 8:56
protectorChristian Graus18-Jan-08 8:56 
GeneralRe: playing a .wmv file in an MFC application Pin
Mark Salsbery18-Jan-08 9:01
Mark Salsbery18-Jan-08 9:01 
GeneralRe: playing a .wmv file in an MFC application Pin
Hamid_RT18-Jan-08 19:00
Hamid_RT18-Jan-08 19:00 
GeneralRe: playing a .wmv file in an MFC application Pin
goodoljosh198026-Jan-08 16:47
goodoljosh198026-Jan-08 16:47 
GeneralRe: playing a .wmv file in an MFC application Pin
Hamid_RT27-Jan-08 20:44
Hamid_RT27-Jan-08 20:44 
GeneralWindows service fails to start Pin
RoyceF18-Jan-08 6:59
RoyceF18-Jan-08 6:59 
Hi,

I have a Windows service that I had running yesterday, but today I can't get it to start. I have gone back to my old code that ran yesterday, but it still doesn't start. How can I get an error code that will give me some hint of what the problem is? The failing code is shown below:

<br />
if( ::StartService(schService, 0, 0) ) <br />
{<br />
    Sleep(1000);<br />
<br />
    while( ::QueryServiceStatus(schService, &m_ssStatus) ) <br />
    {<br />
	if( m_ssStatus.dwCurrentState == SERVICE_START_PENDING ) <br />
	{<br />
	    TRACE( "." );   THIS LOOP NEVER EXITS, SO I CAN'T GET AN ERROR CODE<br />
	    Sleep( 1000 );<br />
	}<br />
	else<br />
	    break;	<br />
    }<br />


I found an event in the application event log with the following description, but I don't know what it means:

The description for Event ID ( 0 ) in Source ( AutoFileHandler ) cannot be found. The local computer may not have the necessary registry information or message DLL files to

display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following

information is part of the event: Service installed.

Can anybody help me with this?

Any help greatly appreciated.
GeneralRe: Windows service fails to start Pin
led mike18-Jan-08 7:09
led mike18-Jan-08 7:09 
GeneralRe: Windows service fails to start Pin
David Crow18-Jan-08 8:41
David Crow18-Jan-08 8:41 
GeneralRe: Windows service fails to start Pin
RoyceF18-Jan-08 12:29
RoyceF18-Jan-08 12:29 
GeneralRe: Windows service fails to start Pin
Mark Salsbery18-Jan-08 13:06
Mark Salsbery18-Jan-08 13:06 
GeneralRe: Windows service fails to start Pin
RoyceF18-Jan-08 15:12
RoyceF18-Jan-08 15:12 
GeneralBrowser events Pin
Christian Graus18-Jan-08 6:52
protectorChristian Graus18-Jan-08 6:52 
GeneralRe: Browser events Pin
led mike18-Jan-08 8:06
led mike18-Jan-08 8:06 
GeneralRe: Browser events Pin
Christian Graus18-Jan-08 8:55
protectorChristian Graus18-Jan-08 8:55 
GeneralRe: Browser events Pin
led mike18-Jan-08 9:10
led mike18-Jan-08 9:10 
GeneralRe: Browser events Pin
Christian Graus18-Jan-08 15:10
protectorChristian Graus18-Jan-08 15:10 
GeneralRe: Browser events Pin
led mike22-Jan-08 4:36
led mike22-Jan-08 4:36 
GeneralRe: Browser events Pin
led mike29-Jan-08 6:47
led mike29-Jan-08 6:47 
Generalopensource editor Pin
Sanjay K18-Jan-08 6:51
Sanjay K18-Jan-08 6:51 
GeneralRe: opensource editor Pin
tina->newcoder18-Jan-08 7:01
tina->newcoder18-Jan-08 7:01 
QuestionRe: opensource editor Pin
Maximilien18-Jan-08 8:13
Maximilien18-Jan-08 8:13 
GeneralRe: opensource editor Pin
Ed.Poore18-Jan-08 13:59
Ed.Poore18-Jan-08 13:59 
GeneralRe: opensource editor Pin
Hamid_RT18-Jan-08 19:03
Hamid_RT18-Jan-08 19:03 

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.