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

C / C++ / MFC

 
AnswerRe: IS IT POSSIBLE TO HANDLE MOUSE SCROLL EVENT Pin
V_shr3-May-06 20:41
V_shr3-May-06 20:41 
AnswerRe: IS IT POSSIBLE TO HANDLE MOUSE SCROLL EVENT Pin
Stephen Hewitt3-May-06 20:45
Stephen Hewitt3-May-06 20:45 
QuestionWinDbg - is it possible to set breakpoint on system function? Pin
chupa1233-May-06 19:51
chupa1233-May-06 19:51 
AnswerRe: WinDbg - is it possible to set breakpoint on system function? Pin
Maxwell Chen3-May-06 20:03
Maxwell Chen3-May-06 20:03 
GeneralRe: WinDbg - is it possible to set breakpoint on system function? Pin
chupa1233-May-06 21:07
chupa1233-May-06 21:07 
AnswerRe: WinDbg - is it possible to set breakpoint on system function? Pin
Stephen Hewitt3-May-06 20:25
Stephen Hewitt3-May-06 20:25 
GeneralRe: WinDbg - is it possible to set breakpoint on system function? Pin
chupa1233-May-06 20:51
chupa1233-May-06 20:51 
GeneralRe: WinDbg - is it possible to set breakpoint on system function? Pin
Stephen Hewitt3-May-06 21:01
Stephen Hewitt3-May-06 21:01 
I issued the following command in WinDBG while debugging notepad:
0:000> bp user32!GetMessageW
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\WINDOWS\system32\USER32.dll - 
0:000> bl
 0 e 77d491c6     0001 (0001)  0:**** USER32!GetMessageW
0:000> lm
start    end        module name
01000000 01014000   notepad    (pdb symbols)          C:\Symbols\notepad.pdb\F679AEF8BE1F44CAB4CBC4B52D77241B1\notepad.pdb
5ad70000 5ada8000   UxTheme    (deferred)             
5cb70000 5cb96000   ShimEng    (deferred)             
6f880000 6fa4a000   AcGenral   (deferred)             
73000000 73026000   WINSPOOL   (deferred)             
74720000 7476b000   MSCTF      (deferred)             
763b0000 763f9000   comdlg32   (deferred)             
769c0000 76a73000   USERENV    (deferred)             
76b40000 76b6d000   WINMM      (deferred)             
77120000 771ac000   OLEAUT32   (deferred)             
773d0000 774d2000   COMCTL32   (deferred)             
774e0000 7761d000   ole32      (deferred)             
77be0000 77bf5000   MSACM32    (deferred)             
77c00000 77c08000   VERSION    (deferred)             
77c10000 77c68000   msvcrt     (deferred)             
77d40000 77dd0000   USER32     (export symbols)       C:\WINDOWS\system32\USER32.dll
77dd0000 77e6b000   ADVAPI32   (deferred)             
77e70000 77f01000   RPCRT4     (deferred)             
77f10000 77f57000   GDI32      (deferred)             
77f60000 77fd6000   SHLWAPI    (deferred)             
7c800000 7c8f4000   kernel32   (pdb symbols)          C:\Symbols\kernel32.pdb\FB334FB28FA34128BDE9229285BE4C2F2\kernel32.pdb
7c900000 7c9b0000   ntdll      (pdb symbols)          C:\Symbols\ntdll.pdb\36515FB5D04345E491F672FA2E2878C02\ntdll.pdb
7c9c0000 7d1d5000   SHELL32    (deferred)
Breakpoint 0 hit
eax=0007fefc ebx=03cc07df ecx=0000625c edx=7c90eb94 esi=00000000 edi=77d491c6
eip=77d491c6 esp=0007fedc ebp=0007ff1c iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246
USER32!GetMessageW:
77d491c6 8bff             mov     edi,edi
0:000> k 1000
ChildEBP RetAddr  
WARNING: Stack unwind information not available. Following frames may be wrong.
0007fed8 01002a1b USER32!GetMessageW
0007ff1c 01007511 notepad!WinMain+0xe5
0007ffc0 7c816d4f notepad!WinMainCRTStartup+0x174
0007fff0 00000000 kernel32!BaseProcessStart+0x23


As you can see I was able to place a breakpoint even though the symbols for user32.dll are only export symbols. Does this work for you?


Steve
GeneralRe: WinDbg - is it possible to set breakpoint on system function? Pin
chupa1233-May-06 21:20
chupa1233-May-06 21:20 
GeneralRe: WinDbg - is it possible to set breakpoint on system function? Pin
Monty23-May-06 22:51
Monty23-May-06 22:51 
GeneralRe: WinDbg - is it possible to set breakpoint on system function? Pin
Stephen Hewitt4-May-06 0:23
Stephen Hewitt4-May-06 0:23 
QuestionEditCtrl Left Margin Pin
Nishad S3-May-06 19:12
Nishad S3-May-06 19:12 
AnswerRe: EditCtrl Left Margin Pin
Nibu babu thomas3-May-06 19:16
Nibu babu thomas3-May-06 19:16 
GeneralRe: EditCtrl Left Margin Pin
Nishad S3-May-06 19:23
Nishad S3-May-06 19:23 
GeneralRe: EditCtrl Left Margin Pin
Nibu babu thomas3-May-06 19:28
Nibu babu thomas3-May-06 19:28 
GeneralRe: EditCtrl Left Margin Pin
Nishad S3-May-06 19:37
Nishad S3-May-06 19:37 
GeneralRe: EditCtrl Left Margin Pin
PJ Arends3-May-06 19:43
professionalPJ Arends3-May-06 19:43 
GeneralRe: EditCtrl Left Margin Pin
Nishad S3-May-06 19:54
Nishad S3-May-06 19:54 
GeneralRe: EditCtrl Left Margin Pin
Nibu babu thomas3-May-06 20:49
Nibu babu thomas3-May-06 20:49 
GeneralRe: EditCtrl Left Margin Pin
Nishad S3-May-06 20:53
Nishad S3-May-06 20:53 
GeneralRe: EditCtrl Left Margin Pin
Nibu babu thomas3-May-06 20:55
Nibu babu thomas3-May-06 20:55 
GeneralRe: EditCtrl Left Margin Pin
Nishad S3-May-06 21:01
Nishad S3-May-06 21:01 
QuestionRe: EditCtrl Left Margin Pin
Nibu babu thomas3-May-06 21:03
Nibu babu thomas3-May-06 21:03 
AnswerRe: EditCtrl Left Margin Pin
Nishad S3-May-06 21:07
Nishad S3-May-06 21:07 
GeneralRe: EditCtrl Left Margin Pin
Nibu babu thomas3-May-06 21:10
Nibu babu thomas3-May-06 21:10 

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.