Click here to Skip to main content
15,919,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Functions Pin
toxcct12-Apr-04 22:16
toxcct12-Apr-04 22:16 
GeneralRe: Functions Pin
bhangie12-Apr-04 22:54
bhangie12-Apr-04 22:54 
GeneralRe: Functions Pin
David Crow13-Apr-04 3:10
David Crow13-Apr-04 3:10 
GeneralPowerpoint Application in vc++ Pin
ckedar12-Apr-04 21:59
ckedar12-Apr-04 21:59 
GeneralRe: Powerpoint Application in vc++ Pin
kiDDevil8-Apr-14 3:32
kiDDevil8-Apr-14 3:32 
GeneralDundas' CU_Service problem !!!!! Pin
Anonymous12-Apr-04 21:47
Anonymous12-Apr-04 21:47 
GeneralRe: Dundas' CU_Service problem !!!!! Pin
22491712-Apr-04 21:53
22491712-Apr-04 21:53 
GeneralRe: Dundas' CU_Service problem !!!!! Pin
Anonymous12-Apr-04 21:56
Anonymous12-Apr-04 21:56 
hi suhredayan here is it

<br />
{<br />
    DWORD  currentState = 0;<br />
<br />
    switch(controlCode){<br />
        // There is no START option because<br />
        // ServiceMain gets called on a start<br />
<br />
        // Stop the service<br />
        case SERVICE_CONTROL_STOP:<br />
<br />
            currentState = SERVICE_STOP_PENDING;<br />
            <br />
            // Tell the SCM what's happening<br />
            CUServ->SCMStatus(currentState,NO_ERROR, 0, 1, CUServ->m_StopTimeOut);<br />
            <br />
            // Stop the service<br />
            CUServ->OnStopService();<br />
            return;<br />
<br />
        // Pause the service<br />
        case SERVICE_CONTROL_PAUSE:<br />
<br />
            if (CUServ->m_RunningService && ! CUServ->m_PauseService){<br />
            <br />
                currentState = SERVICE_PAUSED;<br />
                <br />
                // Tell the SCM what's happening<br />
                CUServ->SCMStatus(SERVICE_PAUSE_PENDING,NO_ERROR, 0, 1, CUServ->m_PauseTimeOut);<br />
                CUServ->OnPauseService();<br />
            }<br />
            break;<br />
<br />
        // Resume from a pause<br />
        case SERVICE_CONTROL_CONTINUE:<br />
<br />
            if (CUServ->m_RunningService && CUServ->m_PauseService){<br />
<br />
                currentState = SERVICE_RUNNING;<br />
<br />
                // Tell the SCM what's happening<br />
                CUServ->SCMStatus(SERVICE_CONTINUE_PENDING,NO_ERROR, 0, 1, CUServ->m_ResumeTimeOut);<br />
                CUServ->OnResumeService();<br />
            }<br />
            break;<br />
    }<br />
<br />
    //default<br />
    CUServ->SCMStatus(currentState, NO_ERROR,0, 0, 0);<br />
}<br />

GeneralRe: Dundas' CU_Service problem !!!!! Pin
22491712-Apr-04 22:37
22491712-Apr-04 22:37 
GeneralRe: Dundas' CU_Service problem !!!!! Pin
Anonymous12-Apr-04 22:58
Anonymous12-Apr-04 22:58 
QuestionTOOLBAR disabled???? Pin
Balkrishna Talele12-Apr-04 20:57
Balkrishna Talele12-Apr-04 20:57 
AnswerRe: TOOLBAR disabled???? Pin
Anthony_Yio13-Apr-04 0:10
Anthony_Yio13-Apr-04 0:10 
GeneralRe: TOOLBAR disabled???? Pin
Balkrishna Talele13-Apr-04 0:24
Balkrishna Talele13-Apr-04 0:24 
GeneralRe: TOOLBAR disabled???? Pin
Anthony_Yio13-Apr-04 0:33
Anthony_Yio13-Apr-04 0:33 
GeneralRe: TOOLBAR disabled???? Pin
Anthony_Yio13-Apr-04 0:36
Anthony_Yio13-Apr-04 0:36 
GeneralRe: TOOLBAR disabled???? Pin
Balkrishna Talele13-Apr-04 23:35
Balkrishna Talele13-Apr-04 23:35 
GeneralHelp : How to retrieve Item Text of a List Control in an application from another application Pin
Nigo12-Apr-04 20:31
Nigo12-Apr-04 20:31 
GeneralRe: Help : How to retrieve Item Text of a List Control in an application from another application Pin
Anthony_Yio13-Apr-04 0:12
Anthony_Yio13-Apr-04 0:12 
GeneralRe: Help : How to retrieve Item Text of a List Control in an application from another application Pin
Nigo13-Apr-04 16:29
Nigo13-Apr-04 16:29 
QuestionHow to acknowledge an enter in a win32 edit control Pin
vision200412-Apr-04 20:25
vision200412-Apr-04 20:25 
Generalgetting Cookies from server Pin
Abhi Lahare12-Apr-04 19:47
Abhi Lahare12-Apr-04 19:47 
GeneralRe: getting Cookies from server Pin
Anthony_Yio13-Apr-04 0:17
Anthony_Yio13-Apr-04 0:17 
QuestionHow to separate a string to several parts? Pin
freehawk12-Apr-04 19:30
freehawk12-Apr-04 19:30 
AnswerRe: How to separate a string to several parts? Pin
Monty212-Apr-04 21:35
Monty212-Apr-04 21:35 
AnswerRe: How to separate a string to several parts? Pin
toxcct12-Apr-04 21:36
toxcct12-Apr-04 21:36 

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.