Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Button Color In MFC Pin
002comp24-Apr-12 21:34
002comp24-Apr-12 21:34 
GeneralRe: Button Color In MFC Pin
JohnCz25-Apr-12 0:31
JohnCz25-Apr-12 0:31 
GeneralRe: Button Color In MFC Pin
002comp25-Apr-12 3:05
002comp25-Apr-12 3:05 
AnswerRe: Button Color In MFC Pin
JohnCz25-Apr-12 3:47
JohnCz25-Apr-12 3:47 
GeneralRe: Button Color In MFC Pin
002comp25-Apr-12 7:51
002comp25-Apr-12 7:51 
GeneralRe: Button Color In MFC Pin
David Crow25-Apr-12 8:09
David Crow25-Apr-12 8:09 
GeneralRe: Button Color In MFC Pin
JohnCz26-Apr-12 2:28
JohnCz26-Apr-12 2:28 
QuestionRe: Button Color In MFC Pin
David Crow25-Apr-12 2:39
David Crow25-Apr-12 2:39 
AnswerRe: Button Color In MFC Pin
002comp25-Apr-12 7:55
002comp25-Apr-12 7:55 
QuestionReference return vs Pointer return Pin
Aragtey24-Apr-12 0:05
Aragtey24-Apr-12 0:05 
AnswerRe: Reference return vs Pointer return Pin
CPallini24-Apr-12 0:56
mveCPallini24-Apr-12 0:56 
AnswerRe: Reference return vs Pointer return Pin
enhzflep24-Apr-12 1:10
enhzflep24-Apr-12 1:10 
AnswerRe: Reference return vs Pointer return Pin
Aescleal24-Apr-12 1:55
Aescleal24-Apr-12 1:55 
GeneralRe: Reference return vs Pointer return Pin
Aragtey24-Apr-12 5:37
Aragtey24-Apr-12 5:37 
GeneralRe: Reference return vs Pointer return Pin
Aescleal24-Apr-12 6:31
Aescleal24-Apr-12 6:31 
GeneralRe: Reference return vs Pointer return Pin
Aragtey24-Apr-12 6:36
Aragtey24-Apr-12 6:36 
GeneralRe: Reference return vs Pointer return Pin
Aescleal25-Apr-12 5:19
Aescleal25-Apr-12 5:19 
QuestionBest approach to compare files Pin
MKC00223-Apr-12 23:37
MKC00223-Apr-12 23:37 
AnswerRe: Best approach to compare files Pin
sangamdumne23-Apr-12 23:49
sangamdumne23-Apr-12 23:49 
GeneralRe: Best approach to compare files Pin
MKC00224-Apr-12 0:22
MKC00224-Apr-12 0:22 
GeneralRe: Best approach to compare files Pin
enhzflep24-Apr-12 1:35
enhzflep24-Apr-12 1:35 
AnswerRe: Best approach to compare files Pin
Chris Losinger24-Apr-12 1:46
professionalChris Losinger24-Apr-12 1:46 
QuestionRe: Best approach to compare files Pin
Randor 24-Apr-12 20:35
professional Randor 24-Apr-12 20:35 
AnswerRe: Best approach to compare files Pin
Chris Losinger25-Apr-12 1:31
professionalChris Losinger25-Apr-12 1:31 
QuestionCreate And Start Service using C++ Pin
sangamdumne23-Apr-12 23:36
sangamdumne23-Apr-12 23:36 
Hi friends,
I'm trying to create My own service for .exe.
my service create function successfully creates service but when i try to start to that service
then it gives error code 1053 which is ERROR_SERVICE_REQUEST_TIMEOUT. also i saw that startservice() fun goes in waiting for 30seconds
and then gives error 1053.

pls help,

here is my code for ur ref...


hServiceMGROpen=OpenSCManager(serverName,SERVICES_ACTIVE_DATABASE,SC_MANAGER_ALL_ACCESS);
if(hServiceMGROpen!=NULL)
{
hServiceOpen=OpenService(hServiceMGROpen,"myService",SERVICE_ALL_ACCESS);
if(hServiceOpen!=NULL)
{
succStart=StartService(hServiceOpen,0,NULL);
if(succStart)
{
printf("Service starts successfully ");
}
else
{
DWORD err=GetLastError();
printf("Error %d",err);
}
}
}
Thanks in advance...!!!
Sangam


modified 24-Apr-12 5:46am.

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.