Click here to Skip to main content
15,901,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: MSXML load - not able to read chinese characters in path Pin
Randor 1-Mar-18 14:46
professional Randor 1-Mar-18 14:46 
AnswerRe: MSXML load - not able to read chinese characters in path Pin
Gopi Nath19-Mar-18 23:18
Gopi Nath19-Mar-18 23:18 
QuestionGiven two numbers say a and b. Print their XOR after making the lengths of their binary representation equal by adding trailing zeros to the binary representation of smaller one. Pin
Tarun Jha25-Feb-18 10:14
Tarun Jha25-Feb-18 10:14 
AnswerRe: Given two numbers say a and b. Print their XOR after making the lengths of their binary representation equal by adding trailing zeros to the binary representation of smaller one. Pin
Richard MacCutchan25-Feb-18 21:54
mveRichard MacCutchan25-Feb-18 21:54 
AnswerRe: Given two numbers say a and b. Print their XOR after making the lengths of their binary representation equal by adding trailing zeros to the binary representation of smaller one. Pin
CPallini25-Feb-18 23:17
mveCPallini25-Feb-18 23:17 
GeneralRe: Given two numbers say a and b. Print their XOR after making the lengths of their binary representation equal by adding trailing zeros to the binary representation of smaller one. Pin
Richard MacCutchan25-Feb-18 23:32
mveRichard MacCutchan25-Feb-18 23:32 
GeneralRe: Given two numbers say a and b. Print their XOR after making the lengths of their binary representation equal by adding trailing zeros to the binary representation of smaller one. Pin
CPallini25-Feb-18 23:53
mveCPallini25-Feb-18 23:53 
QuestionStrange Debugging results Pin
ForNow24-Feb-18 16:36
ForNow24-Feb-18 16:36 
In the C/C++ code below debugptr comes up as null however when I go into Disassembly the value return in register rax from __imp_Cwnd::FromHandle is correct as I place an eyecatcher "Debug" in CprogDebug and when I go to look at that memory address I can see that literal in the memory
more so when I got to rsi + 118h the value of the rax register is there

When I do a quickwatch in VS on Debugptr its NULL

BTW I do a get an exception utilizing debugptr as a pointer

C++
133:     debugptr = (CprogDebug *)temptr->GetOwner();

ASM
 00007FF635B24727 48 8B 88 98 00 00 00 mov         rcx,qword ptr [rax+98h]  
00007FF635B2472E 48 85 C9             test        rcx,rcx  
00007FF635B24731 75 0D                jne         CMypercolate::process_sdump+60h (07FF635B24740h)  
00007FF635B24733 48 8B 48 40          mov         rcx,qword ptr [rax+40h]  
00007FF635B24737 FF 15 A3 AC 00 00    call        qword ptr [__imp_GetParent (07FF635B2F3E0h)]  
00007FF635B2473D 48 8B C8             mov         rcx,rax  
00007FF635B24740 FF 15 BA B8 00 00    call        qword ptr [__imp_CWnd::FromHandle (07FF635B30000h)]  
00007FF635B24746 48 89 86 18 01 00 00 mov         qword ptr [rsi+118h],rax  

GeneralRe: Strange Debugging results Pin
Richard MacCutchan24-Feb-18 20:13
mveRichard MacCutchan24-Feb-18 20:13 
GeneralRe: Strange Debugging results Pin
ForNow24-Feb-18 20:38
ForNow24-Feb-18 20:38 
GeneralRe: Strange Debugging results Pin
Richard MacCutchan25-Feb-18 3:43
mveRichard MacCutchan25-Feb-18 3:43 
GeneralRe: Strange Debugging results Pin
ForNow25-Feb-18 5:15
ForNow25-Feb-18 5:15 
GeneralRe: Strange Debugging results Pin
Richard MacCutchan25-Feb-18 6:20
mveRichard MacCutchan25-Feb-18 6:20 
GeneralRe: Strange Debugging results Pin
ForNow25-Feb-18 6:56
ForNow25-Feb-18 6:56 
GeneralRe: Strange Debugging results Pin
ForNow25-Feb-18 8:28
ForNow25-Feb-18 8:28 
GeneralRe: Strange Debugging results Pin
Richard MacCutchan25-Feb-18 21:36
mveRichard MacCutchan25-Feb-18 21:36 
GeneralRe: Strange Debugging results Pin
ForNow26-Feb-18 1:53
ForNow26-Feb-18 1:53 
QuestionWhen an process is loaded Pin
_Flaviu22-Feb-18 23:15
_Flaviu22-Feb-18 23:15 
QuestionRe: When an process is loaded Pin
Richard MacCutchan22-Feb-18 23:18
mveRichard MacCutchan22-Feb-18 23:18 
AnswerRe: When an process is loaded Pin
_Flaviu22-Feb-18 23:35
_Flaviu22-Feb-18 23:35 
GeneralRe: When an process is loaded Pin
Richard MacCutchan22-Feb-18 23:48
mveRichard MacCutchan22-Feb-18 23:48 
QuestionCdialog CWnd* pParent null after passing this pointer to Cdialog constructer Pin
ForNow22-Feb-18 16:46
ForNow22-Feb-18 16:46 
AnswerRe: Cdialog CWnd* pParent null after passing this pointer to Cdialog constructer Pin
leon de boer22-Feb-18 20:25
leon de boer22-Feb-18 20:25 
GeneralRe: Cdialog CWnd* pParent null after passing this pointer to Cdialog constructer Pin
ForNow22-Feb-18 21:13
ForNow22-Feb-18 21:13 
GeneralRe: Cdialog CWnd* pParent null after passing this pointer to Cdialog constructer Pin
leon de boer22-Feb-18 21:26
leon de boer22-Feb-18 21:26 

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.