Click here to Skip to main content
15,886,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Annoying problem with VC++ 6.0 - compiler on strike?? Pin
Vaclav_24-Mar-10 17:41
Vaclav_24-Mar-10 17:41 
QuestionReg. Booting from Virtual Disk Image Pin
john563224-Mar-10 6:04
john563224-Mar-10 6:04 
QuestionSymEnumSymbols is getting failed even GetLastError returns 0 Pin
glitteringsound24-Mar-10 4:32
glitteringsound24-Mar-10 4:32 
AnswerRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
Covean24-Mar-10 4:55
Covean24-Mar-10 4:55 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
glitteringsound24-Mar-10 5:00
glitteringsound24-Mar-10 5:00 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
Covean24-Mar-10 5:21
Covean24-Mar-10 5:21 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
glitteringsound24-Mar-10 5:30
glitteringsound24-Mar-10 5:30 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
Covean24-Mar-10 5:38
Covean24-Mar-10 5:38 
The problem with your code is, that you don't load any symbols that SymEnumSymbols can enumerate.

The number 64 at the end just says that it is an 64 bit-compatible function.
SysLoadModule64 supersedes the old function SysLoadModule, that just worked on an 32 bit
os. The new function works on an 32 as well as 64 bit os.

From MSDN:
"Where necessary, the DbgHelp library has been widened to support both 32- and 64-bit Windows. The original function and structure definitions are still in DbgHelp.h, but there are also updated versions of these definitions that are compatible with 64-bit Windows. If you use the updated functions in your code, it can be compiled for both 32- and 64-bit Windows. Your code will also be more efficient, since the original functions simply call the updated functions to perform the work.

For example, DbgHelp.h contains definitions for SymUnloadModule (original function) and SymUnloadModule64 (updated function). These definitions are nearly identical, but use different types for the BaseOfDll parameter. (SymUnloadModule uses the DWORD type, while SymUnloadModule64 uses the DWORD64 type.) If you write your code to use SymUnloadModule64, it can be compiled for both 32- and 64-bit Windows. The code is also more efficient than if it were to call SymUnloadModule."
Greetings
Covean

GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
glitteringsound24-Mar-10 5:50
glitteringsound24-Mar-10 5:50 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
Covean24-Mar-10 6:00
Covean24-Mar-10 6:00 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
glitteringsound24-Mar-10 6:07
glitteringsound24-Mar-10 6:07 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
Covean24-Mar-10 6:18
Covean24-Mar-10 6:18 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
glitteringsound24-Mar-10 6:42
glitteringsound24-Mar-10 6:42 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
Covean25-Mar-10 3:25
Covean25-Mar-10 3:25 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
cmk24-Mar-10 12:28
cmk24-Mar-10 12:28 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
glitteringsound24-Mar-10 20:27
glitteringsound24-Mar-10 20:27 
QuestionDifference between C and Visual C. Pin
Razanust24-Mar-10 4:17
Razanust24-Mar-10 4:17 
QuestionRe: Difference between C and Visual C. Pin
David Crow24-Mar-10 4:32
David Crow24-Mar-10 4:32 
AnswerRe: Difference between C and Visual C. Pin
Chris Losinger24-Mar-10 7:10
professionalChris Losinger24-Mar-10 7:10 
QuestionWindow is not getting Maximize on WINDOWS 7 operating system Pin
pandit8424-Mar-10 2:30
pandit8424-Mar-10 2:30 
AnswerRe: Window is not getting Maximize on WINDOWS 7 operating system Pin
KarstenK24-Mar-10 3:16
mveKarstenK24-Mar-10 3:16 
Question[solved] What benefit has a MULTIBYTE application compared to a UNICODE version ? [modified] Pin
Eugen Podsypalnikov24-Mar-10 0:45
Eugen Podsypalnikov24-Mar-10 0:45 
AnswerRe: What benefit has a MULTIBYTE application compared to a UNICODE version ? Pin
Moak24-Mar-10 1:02
Moak24-Mar-10 1:02 
GeneralRe: What benefit has a MULTIBYTE application compared to a UNICODE version ? Pin
Eugen Podsypalnikov24-Mar-10 1:38
Eugen Podsypalnikov24-Mar-10 1:38 
GeneralRe: What benefit has a MULTIBYTE application compared to a UNICODE version ? Pin
Saurabh.Garg24-Mar-10 17:41
Saurabh.Garg24-Mar-10 17:41 

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.