Click here to Skip to main content
15,881,820 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
NewsRe: CTime Problem? I don't think so....but who knows? Pin
Kyudos6-Sep-11 14:59
Kyudos6-Sep-11 14:59 
AnswerRe: CTime Problem? I don't think so....but who knows? Pin
zhangyupeng7-Sep-11 1:41
zhangyupeng7-Sep-11 1:41 
AnswerRe: CTime Problem? I don't think so....but who knows? Pin
David Crow7-Sep-11 6:19
David Crow7-Sep-11 6:19 
GeneralRe: CTime Problem? I don't think so....but who knows? Pin
Kyudos7-Sep-11 15:23
Kyudos7-Sep-11 15:23 
QuestionIOCompletion in a server also acting as client Pin
Ole Gry Pedersen6-Sep-11 3:52
Ole Gry Pedersen6-Sep-11 3:52 
AnswerRe: IOCompletion in a server also acting as client Pin
«_Superman_»6-Sep-11 16:56
professional«_Superman_»6-Sep-11 16:56 
QuestionDebugging Remote Pin
kLvin725-Sep-11 22:54
kLvin725-Sep-11 22:54 
AnswerRe: Debugging Remote Pin
Erudite_Eric7-Sep-11 6:12
Erudite_Eric7-Sep-11 6:12 
Two ways I know of, using Visual Studio and Windbg locally.

1) VS can be done remote, run msvcmon.exe on the target, do an atach to process in VS specifying the target DNS name. (Putthe symbols in the same dir as the exes for the service you are debugging). If you have the process project open you can set breakpoints and so on.

2) Another is to run Windbg on the client, and do an Attach to Process. SPecify the symbol path, image path, and so on.

This is all very well, but what if you want to debug the service early on in its start up, ie before you get the debugger on it?

I have heard of using Image File Executiuon Options http://support.microsoft.com/kb/824344[^] but I never got it working for me.

Instead what I do is hard code a DebugBreak() early in in the services code. With the target booted in debug mode (modify boot.ini or System Configuration, and enable debug on say CPM1 at 15200 baud). When you get a breakpoint hit the machine will wait till a debugger gets attached and then notify it that the break occured.

You can also debug through the kernel with a remote machine but this is a bit complex and doesnt add any benefits over doing it thorough user mode and it is complex.



#1 is OK, #2 I prefer, purely because I use Windbg so much, since I do mostly kernel debugging. Smile | :)
==============================

Nothing to say.

QuestionProblem with SetLayeredWindowAttribute Pin
Cold_Fearing_Bird5-Sep-11 19:51
Cold_Fearing_Bird5-Sep-11 19:51 
AnswerRe: Problem with SetLayeredWindowAttribute Pin
Iain Clarke, Warrior Programmer5-Sep-11 21:17
Iain Clarke, Warrior Programmer5-Sep-11 21:17 
GeneralRe: Problem with SetLayeredWindowAttribute Pin
Cold_Fearing_Bird5-Sep-11 21:51
Cold_Fearing_Bird5-Sep-11 21:51 
SuggestionHelp me to choose right "Certification" Pin
shanmugarajaa5-Sep-11 18:57
shanmugarajaa5-Sep-11 18:57 
GeneralRe: Help me to choose right "Certification" PinPopular
CPallini5-Sep-11 22:03
mveCPallini5-Sep-11 22:03 
GeneralRe: Help me to choose right "Certification" Pin
zhzh6033696217-Sep-11 4:02
zhzh6033696217-Sep-11 4:02 
GeneralRe: Help me to choose right "Certification" Pin
shanmugarajaa7-Sep-11 5:40
shanmugarajaa7-Sep-11 5:40 
GeneralRe: Help me to choose right "Certification" Pin
David Crow7-Sep-11 6:30
David Crow7-Sep-11 6:30 
GeneralRe: Help me to choose right "Certification" Pin
shanmugarajaa7-Sep-11 7:38
shanmugarajaa7-Sep-11 7:38 
QuestionHow to simulate shift-tab to go to previous control? Pin
Gagnon Claude5-Sep-11 14:35
Gagnon Claude5-Sep-11 14:35 
AnswerRe: How to simulate shift-tab to go to previous control? Pin
Code-o-mat6-Sep-11 0:53
Code-o-mat6-Sep-11 0:53 
QuestionSafe App Pin
john56325-Sep-11 3:30
john56325-Sep-11 3:30 
AnswerRe: Safe App Pin
«_Superman_»5-Sep-11 3:46
professional«_Superman_»5-Sep-11 3:46 
GeneralRe: Safe App Pin
john56325-Sep-11 3:53
john56325-Sep-11 3:53 
AnswerRe: Safe App Pin
Emilio Garavaglia5-Sep-11 20:39
Emilio Garavaglia5-Sep-11 20:39 
GeneralRe: Safe App Pin
jschell7-Sep-11 8:23
jschell7-Sep-11 8:23 
GeneralRe: Safe App Pin
Emilio Garavaglia7-Sep-11 20:43
Emilio Garavaglia7-Sep-11 20:43 

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.