VC编译时,截取如下:
“ADOFirst.exe”:已加载“E:\WINNT\system32\KERNEL32.DLL”,无法找到或打开所需的 DBG 文件。请问DBG文件是做什么用的?

解决方案 »

  1.   

    看MSDN ,如下:DBG FilesC/C++ OnlyDBG files are Portable Executable (PE) format files that contain debug information in Codeview format for the Visual Studio debugger (and possibly other formats, depending on how the DBG was created). When you don't have source for certain code, such libraries or Windows APIs, DBG files permit debugging. DBG files also permit you to do OLE RPC debugging.You can use the REBASE.EXE utility to strip debug information from a PE-format executable and store it in a DBG file. The file characteristic field IMAGE_FILE_DEBUG_STRIPPED in the PE file header tells the debugger that Codeview information has been stripped to a separate DBG file. You can download and install system DBG files that contain symbols for debugging calls to Windows APIs. For more information, see Installing System Debug Symbols.When you debug using symbols from a DBG file, you must use the fully decorated names. For example, to set a breakpoint on a call to the Windows sndPlaySound function, you must specify [email protected] Visual Studio debugger is not designed for debugging protected mode kernel code, even with DBG symbols.