Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MC-CDMA Pin
David Crow5-Jul-05 16:02
David Crow5-Jul-05 16:02 
GeneralRe: MC-CDMA Pin
kwangster5-Jul-05 21:39
kwangster5-Jul-05 21:39 
GeneralUnicode and standard libraries Pin
JWood5-Jul-05 11:49
JWood5-Jul-05 11:49 
GeneralRe: Unicode and standard libraries Pin
Tim Smith5-Jul-05 12:51
Tim Smith5-Jul-05 12:51 
GeneralRe: Unicode and standard libraries Pin
JWood5-Jul-05 14:08
JWood5-Jul-05 14:08 
GeneralAdding controls manually to CWnd derrived object Pin
Budric B.5-Jul-05 11:46
Budric B.5-Jul-05 11:46 
GeneralRe: Adding controls manually to CWnd derrived object Pin
PJ Arends5-Jul-05 12:22
professionalPJ Arends5-Jul-05 12:22 
QuestionSetting breakpoints in a DLL...how? Pin
dandy725-Jul-05 9:06
dandy725-Jul-05 9:06 
Hi all,

I need to implement an SMTP sink to do some custom processing on inbound emails. I got the KB288098 sample to work, which implements an ATL-based COM object to add a disclaimer to every outgoing email. So far, so good--I don't really care at this point that the sample processes outgoing emails and not incoming ones. The test machine has essentially nothing running on it except for IIS and its SMTP service.

Now, before proceeding further (and I know I'm otherwise gonna break something when I start modifying the sample), I'd like to set a breakpoint in the sample's custom code--specifically, at the start of the CAddDisclaimer::OnSmtpOutCommand() function. I cannot get the breakpoint to trigger.


In this case, my sink DLL (smtpdisclaimer.dll) gets loaded by inetinfo.exe. So, I fire up VC6, load my SMTP sink project, load the adddisclaimer.cpp file, set the breakpoint in the OnSmtpOutCommand() function, select Build, Start Debug, Attach to Process..., select inetinfo from the process list, and OK. Fine, the debugger seems to be in a waiting state.

Then I load up Outlook Express and send an email. I receive it on another machine, with the disclaimer properly in place. This confirms the sample does what it's supposed to be doing.

However, the breakpoint never seems to get hit, and the debugger doesn't interrupt execution and I never get the opportunity to step into any code.

I can hit Stop Debugging after having sent the email, and VC's Output window shows that at some point it has loaded my smtpdisclaimer.dll and its debug symbols (I can see it's been loaded from the proper path and everything)...

I think I need a little hand-holding. How do I go about this? I think my problem stems from the fact that I've never had the chance (misfortune?) to debug a DLL until now, and doesn't really have anything to do with this specific sample...

Help?

AnswerRe: Setting breakpoints in a DLL...how? Pin
Peter Weyzen5-Jul-05 9:48
Peter Weyzen5-Jul-05 9:48 
GeneralRe: Setting breakpoints in a DLL...how? Pin
dandy726-Jul-05 10:23
dandy726-Jul-05 10:23 
AnswerRe: Setting breakpoints in a DLL...how? Pin
Toby Opferman5-Jul-05 10:02
Toby Opferman5-Jul-05 10:02 
Generalan interview question of undo/redo Pin
qudayong5-Jul-05 8:16
qudayong5-Jul-05 8:16 
GeneralRe: an interview question Pin
Jose Lamas Rios5-Jul-05 8:40
Jose Lamas Rios5-Jul-05 8:40 
GeneralRe: an interview question Pin
David Crow5-Jul-05 9:18
David Crow5-Jul-05 9:18 
GeneralRe: an interview question Pin
qudayong5-Jul-05 9:46
qudayong5-Jul-05 9:46 
GeneralRe: an interview question Pin
David Crow5-Jul-05 9:55
David Crow5-Jul-05 9:55 
GeneralRe: an interview question Pin
Toby Opferman5-Jul-05 9:59
Toby Opferman5-Jul-05 9:59 
GeneralRe: an interview question Pin
Tim Smith5-Jul-05 13:20
Tim Smith5-Jul-05 13:20 
GeneralRe: an interview question Pin
qudayong5-Jul-05 15:14
qudayong5-Jul-05 15:14 
GeneralRe: an interview question of undo/redo Pin
Chris Losinger5-Jul-05 15:27
professionalChris Losinger5-Jul-05 15:27 
GeneralRe: an interview question of undo/redo Pin
qudayong6-Jul-05 1:59
qudayong6-Jul-05 1:59 
GeneralRe: an interview question of undo/redo Pin
Chris Losinger6-Jul-05 2:13
professionalChris Losinger6-Jul-05 2:13 
GeneralRe: an interview question of undo/redo Pin
Mister Transistor14-Jul-05 3:30
Mister Transistor14-Jul-05 3:30 
GeneralRe: an interview question of undo/redo Pin
qudayong6-Jul-05 4:34
qudayong6-Jul-05 4:34 
GeneralRe: HELP VC++ my program is stuck. Pin
Wes Aday5-Jul-05 7:51
professionalWes Aday5-Jul-05 7:51 

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.