Click here to Skip to main content
16,005,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: correctly play WM_MOUSEWHEEL Pin
greba17-Jan-05 9:56
greba17-Jan-05 9:56 
GeneralRe: correctly play WM_MOUSEWHEEL Pin
Member 166110218-Jan-05 0:05
Member 166110218-Jan-05 0:05 
GeneralRe: correctly play WM_MOUSEWHEEL Pin
Member 166110225-Jan-05 4:44
Member 166110225-Jan-05 4:44 
QuestionDesktopbackround handle? Pin
Nico Grüner17-Jan-05 6:21
sussNico Grüner17-Jan-05 6:21 
AnswerRe: Desktopbackround handle? Pin
Martin Koorts17-Jan-05 6:34
Martin Koorts17-Jan-05 6:34 
GeneralRe: Desktopbackround handle? Pin
Nico Grüner17-Jan-05 19:19
sussNico Grüner17-Jan-05 19:19 
GeneralRe: Desktopbackround handle? Pin
Martin Koorts17-Jan-05 23:07
Martin Koorts17-Jan-05 23:07 
GeneralATL service crashes when being stopped by system Pin
Cruelty17-Jan-05 5:42
Cruelty17-Jan-05 5:42 
My ATL service crashes when it is being stopped by the system (its startup mode is "automatic"). This happens only if the service is running on Windows XP and is being stopped automatically (not manually).

The source code:

HRESULT CMyServiceModule::PostMessageLoop()
{
RevokeClassObjects();
LogEvent(_T("Service stopped"));
CoUninitialize();

SetServiceStatus(SERVICE_STOPPED); // <--- this line causes the crash

return CAtlServiceModuleT<clegnlicenceservicemodule, ids_servicename="">::PostMessageLoop();
}

The debugger shows that m_hServiceStatus is NULL.

Thank you in advance for any ideas.
GeneralPrinting Output Pin
BRIMID17-Jan-05 5:29
BRIMID17-Jan-05 5:29 
GeneralRe: Printing Output Pin
Martin Koorts17-Jan-05 5:40
Martin Koorts17-Jan-05 5:40 
GeneralRe: Printing Output Pin
BRIMID17-Jan-05 6:02
BRIMID17-Jan-05 6:02 
GeneralRe: Printing Output Pin
David Crow17-Jan-05 6:34
David Crow17-Jan-05 6:34 
GeneralDigital Camera API Pin
Franz Klein17-Jan-05 5:01
Franz Klein17-Jan-05 5:01 
GeneralRe: Digital Camera API Pin
Mike Dimmick17-Jan-05 6:35
Mike Dimmick17-Jan-05 6:35 
GeneralBreak point Pin
Surya Prakash Adari17-Jan-05 4:11
Surya Prakash Adari17-Jan-05 4:11 
GeneralRe: Break point Pin
Antony M Kancidrowski17-Jan-05 6:40
Antony M Kancidrowski17-Jan-05 6:40 
GeneralVisual C++ 2003 and Profiler Pin
Defenestration17-Jan-05 4:07
Defenestration17-Jan-05 4:07 
GeneralRe: Visual C++ 2003 and Profiler Pin
Mike Dimmick17-Jan-05 6:39
Mike Dimmick17-Jan-05 6:39 
QuestionHow to get file-size of a file? Pin
Monisankar17-Jan-05 4:01
Monisankar17-Jan-05 4:01 
AnswerRe: How to get file-size of a file? Pin
Martin Koorts17-Jan-05 4:56
Martin Koorts17-Jan-05 4:56 
AnswerRe: How to get file-size of a file? Pin
David Crow17-Jan-05 6:37
David Crow17-Jan-05 6:37 
GeneralRe: How to get file-size of a file? Pin
Monisankar17-Jan-05 18:55
Monisankar17-Jan-05 18:55 
GeneralRe: How to get file-size of a file? Pin
David Crow18-Jan-05 3:15
David Crow18-Jan-05 3:15 
AnswerRe: How to get file-size of a file? Pin
HurricaneFlossie18-Jan-05 8:50
HurricaneFlossie18-Jan-05 8:50 
QuestionStatics in tab pages on WinXP? Pin
One Stone17-Jan-05 3:37
One Stone17-Jan-05 3:37 

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.