Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Subclassing in Visual C++ 7 Pin
Tom Moore18-Oct-05 14:41
Tom Moore18-Oct-05 14:41 
QuestionMy diaogbox dont respond inbetween SetTimer () calls. Pin
vikas amin17-Oct-05 23:18
vikas amin17-Oct-05 23:18 
AnswerRe: My diaogbox dont respond inbetween SetTimer () calls. Pin
Marc Soleda17-Oct-05 23:24
Marc Soleda17-Oct-05 23:24 
QuestionRe: My diaogbox dont respond inbetween SetTimer () calls. Pin
David Crow18-Oct-05 3:19
David Crow18-Oct-05 3:19 
AnswerRe: My diaogbox dont respond inbetween SetTimer () calls. Pin
vikas amin18-Oct-05 3:44
vikas amin18-Oct-05 3:44 
GeneralRe: My diaogbox dont respond inbetween SetTimer () calls. Pin
S. Senthil Kumar18-Oct-05 4:20
S. Senthil Kumar18-Oct-05 4:20 
GeneralRe: My diaogbox dont respond inbetween SetTimer () calls. Pin
David Crow18-Oct-05 4:46
David Crow18-Oct-05 4:46 
QuestionDbgHelp.dll : how to parse a pdb file? Pin
Zillon17-Oct-05 23:12
Zillon17-Oct-05 23:12 
Hello everybody,

I'm having some difficulties using functions from the dbhelp library (I guess it's not very surprising when you see how it's documented...).
Here's what I need to do:
I want to be able to get symbols names and adresses in a running application from its pdb file.
And this is what I do:

I run toto.exe (E:\toto_Debug\toto.exe)
While the process is running, in my debuger I do:
Get process handle (hProcess)-> use it in SymInitialize(hProcess,NULL,false))
(returns ok)
The I try to load the pdb file: (me32 is the module corresponding to toto.exe, I'm not sure of this step)

SymLoadModule64(hProcess, NULL, "E:\\toto\\Debug\\toto.pdb", NULL, (DWORD64)me32.modBaseAddr, 1090560)
(returns ok)

and then I try to get a symbol from its name:

char szSymbolName[MAX_SYM_NAME];<br />
				ULONG64 buffer[(sizeof(SYMBOL_INFO) +<br />
					MAX_SYM_NAME*sizeof(TCHAR) +<br />
					sizeof(ULONG64) - 1) /<br />
					sizeof(ULONG64)];<br />
				PSYMBOL_INFO pSymbol = (PSYMBOL_INFO)buffer;<br />
				<br />
				lstrcpy(szSymbolName, "main");<br />
				pSymbol->SizeOfStruct = sizeof(SYMBOL_INFO);<br />
				pSymbol->MaxNameLen = MAX_SYM_NAME;<br />
<br />
SymFromName(hProcess, szSymbolName, pSymbol);


And the application crashes...(access violation).

Ok, questions now:
What is wrong in what I'm doing? I heard pdb files are handled is a strange way:
_does the dbgHelp library tries to find the pdb file itself in the same directory than the executable?
_Do you really have to call the SymLoadModule64 function or do you simply have to call SymInitialize with more appropriate parameters?
_If you really have to call SymLoadModule64, how do you get the module base adress?
I have to admit I'm really lost, if somebody could help me it would be greatly appreciatedSmile | :)

Zillon
Questionhow can i play animations Pin
sheerprogrammer17-Oct-05 22:57
sheerprogrammer17-Oct-05 22:57 
AnswerRe: how can i play animations Pin
vikas amin18-Oct-05 0:19
vikas amin18-Oct-05 0:19 
GeneralRe: how can i play animations Pin
sheerprogrammer18-Oct-05 1:16
sheerprogrammer18-Oct-05 1:16 
AnswerRe: how can i play animations Pin
Eytukan18-Oct-05 0:46
Eytukan18-Oct-05 0:46 
GeneralRe: how can i play animations Pin
sheerprogrammer18-Oct-05 1:19
sheerprogrammer18-Oct-05 1:19 
GeneralRe: how can i play animations Pin
Eytukan18-Oct-05 1:31
Eytukan18-Oct-05 1:31 
Questionhow to hide the Firewall dialog when my exe run? Pin
szcococut17-Oct-05 22:30
szcococut17-Oct-05 22:30 
AnswerRe: how to hide the Firewall dialog when my exe run? Pin
Anonymous18-Oct-05 4:06
Anonymous18-Oct-05 4:06 
GeneralRe: how to hide the Firewall dialog when my exe run? Pin
DeepToot18-Oct-05 4:55
DeepToot18-Oct-05 4:55 
GeneralRe: how to hide the Firewall dialog when my exe run? Pin
szcococut18-Oct-05 15:17
szcococut18-Oct-05 15:17 
GeneralRe: how to hide the Firewall dialog when my exe run? Pin
DeepToot19-Oct-05 3:47
DeepToot19-Oct-05 3:47 
Questionhow can i use CDC pointer base on dailog!! Pin
ebinaini17-Oct-05 21:35
ebinaini17-Oct-05 21:35 
AnswerRe: how can i use CDC pointer base on dailog!! Pin
Cedric Moonen17-Oct-05 21:59
Cedric Moonen17-Oct-05 21:59 
AnswerRe: how can i use CDC pointer base on dailog!! Pin
khan++17-Oct-05 22:31
khan++17-Oct-05 22:31 
AnswerRe: how can i use CDC pointer base on dailog!! Pin
Mircea Puiu18-Oct-05 1:27
Mircea Puiu18-Oct-05 1:27 
QuestionPlease help me Pin
dSolariuM17-Oct-05 21:30
dSolariuM17-Oct-05 21:30 
AnswerRe: Please help me Pin
ThatsAlok17-Oct-05 21:52
ThatsAlok17-Oct-05 21:52 

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.