Click here to Skip to main content
15,896,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: input parameter debug Pin
Matthew Faithfull14-Jul-08 0:40
Matthew Faithfull14-Jul-08 0:40 
GeneralRe: input parameter debug Pin
George_George14-Jul-08 16:12
George_George14-Jul-08 16:12 
GeneralRe: input parameter debug Pin
Matthew Faithfull15-Jul-08 0:42
Matthew Faithfull15-Jul-08 0:42 
GeneralRe: input parameter debug Pin
George_George15-Jul-08 22:26
George_George15-Jul-08 22:26 
GeneralRe: input parameter debug Pin
Matthew Faithfull16-Jul-08 6:46
Matthew Faithfull16-Jul-08 6:46 
GeneralRe: input parameter debug Pin
George_George16-Jul-08 19:46
George_George16-Jul-08 19:46 
AnswerRe: input parameter debug Pin
Mark Salsbery14-Jul-08 6:11
Mark Salsbery14-Jul-08 6:11 
GeneralRe: input parameter debug Pin
George_George14-Jul-08 16:16
George_George14-Jul-08 16:16 
Thanks Mark,


Here is my code and related assembly code. How do you know which register/memory is used as 1st and 2nd input parameter to CoInitializeEx?

0:000> kp
Child-SP          RetAddr           Call Site
00000000`0012ff18 00000001`4000100e ole32!CoInitializeEx(void * pMalloc = 0x00000034`00000008, unsigned long flags = 0x184) 
00000000`0012ff20 00000001`400011d2 TestCoInitializeEx1!main(void)+0xe
00000000`0012ff50 00000000`77d5964c TestCoInitializeEx1!__tmainCRTStartup(void)+0x11a
00000000`0012ff80 00000000`00000000 kernel32!BaseProcessStart(<function> * lpStartAddress = 0x00000001`40001320)+0x29

0:000> ub 00000001`4000100e
TestCoInitializeEx1!main <PERF> (TestCoInitializeEx1+0xff8):
00000001`40000ff8 0000            add     byte ptr [rax],al
TestCoInitializeEx1!main <PERF> (TestCoInitializeEx1+0xffa):
00000001`40000ffa 0000            add     byte ptr [rax],al
TestCoInitializeEx1!main <PERF> (TestCoInitializeEx1+0xffc):
00000001`40000ffc 0000            add     byte ptr [rax],al
TestCoInitializeEx1!main <PERF> (TestCoInitializeEx1+0xffe):
00000001`40000ffe 0000            add     byte ptr [rax],al
TestCoInitializeEx1!main [d:\visual studio 2008\projects\testcoinitializeex1\testcoinitializeex1\main.cpp @ 5]:
00000001`40001000 4883ec28        sub     rsp,28h
00000001`40001004 33d2            xor     edx,edx
00000001`40001006 33c9            xor     ecx,ecx
00000001`40001008 ff152a110000    call    qword ptr [TestCoInitializeEx1!_imp_CoInitializeEx (00000001`40002138)]

#include <windows.h>
#include <objbase.h>

int main()
{
	CoInitializeEx(NULL, 0);

	CoUninitialize();

	return 0;
}



regards,
George
GeneralRe: input parameter debug Pin
Mark Salsbery15-Jul-08 5:25
Mark Salsbery15-Jul-08 5:25 
GeneralRe: input parameter debug Pin
George_George15-Jul-08 22:32
George_George15-Jul-08 22:32 
QuestionLet the CHILD window's bakcground be transparent [modified] Pin
followait13-Jul-08 22:40
followait13-Jul-08 22:40 
AnswerRe: Let the window's bakcground be transparent Pin
sudhir_Kumar14-Jul-08 0:17
sudhir_Kumar14-Jul-08 0:17 
GeneralRe: Let the window's bakcground be transparent Pin
followait14-Jul-08 1:41
followait14-Jul-08 1:41 
AnswerRe: Let the CHILD window's bakcground be transparent Pin
Mark Salsbery14-Jul-08 6:14
Mark Salsbery14-Jul-08 6:14 
QuestionBatch file problem Pin
Nandu_77b13-Jul-08 22:39
Nandu_77b13-Jul-08 22:39 
AnswerRe: Batch file problem Pin
Varghese Paul M13-Jul-08 23:21
Varghese Paul M13-Jul-08 23:21 
GeneralRe: Batch file problem Pin
Nandu_77b13-Jul-08 23:46
Nandu_77b13-Jul-08 23:46 
Questiontry catch question Pin
Dennis L13-Jul-08 22:30
Dennis L13-Jul-08 22:30 
AnswerRe: try catch question Pin
Atropus13-Jul-08 23:06
Atropus13-Jul-08 23:06 
AnswerRe: try catch question Pin
Matthew Faithfull14-Jul-08 0:25
Matthew Faithfull14-Jul-08 0:25 
GeneralRe: try catch question Pin
Stephen Hewitt14-Jul-08 14:52
Stephen Hewitt14-Jul-08 14:52 
GeneralRe: try catch question Pin
Matthew Faithfull15-Jul-08 0:33
Matthew Faithfull15-Jul-08 0:33 
QuestionHow to disable visual style to the whole project Pin
Atropus13-Jul-08 22:11
Atropus13-Jul-08 22:11 
AnswerRe: How to disable visual style to the whole project Pin
BadKarma13-Jul-08 23:06
BadKarma13-Jul-08 23:06 
GeneralRe: How to disable visual style to the whole project Pin
Atropus13-Jul-08 23:15
Atropus13-Jul-08 23:15 

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.