Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read a string with spaces Pin
CodingLover12-Sep-11 19:02
CodingLover12-Sep-11 19:02 
GeneralRe: Read a string with spaces Pin
abhishek.biradar13-Sep-11 2:51
abhishek.biradar13-Sep-11 2:51 
QuestionHow to set/remove ES_READONLY style of CEdit at runtime? Pin
includeh107-Sep-11 5:24
includeh107-Sep-11 5:24 
QuestionRe: How to set/remove ES_READONLY style of CEdit at runtime? Pin
David Crow7-Sep-11 6:09
David Crow7-Sep-11 6:09 
AnswerRe: How to set/remove ES_READONLY style of CEdit at runtime? Pin
Orjan Westin7-Sep-11 23:41
professionalOrjan Westin7-Sep-11 23:41 
QuestionWTSSendMessage Failing Pin
Arun Parthasarathy7-Sep-11 1:58
Arun Parthasarathy7-Sep-11 1:58 
AnswerRe: WTSSendMessage Failing Pin
Code-o-mat7-Sep-11 4:09
Code-o-mat7-Sep-11 4:09 
QuestionCTime Problem? I don't think so....but who knows? Pin
Kyudos6-Sep-11 13:31
Kyudos6-Sep-11 13:31 
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 

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.