常數 (偵錯介面存取 SDK)Constants (Debug Interface Access SDK)

這些字串常數可以用來識別程式的各個區段, (PDB 透過 DIA SDK) 檔。These string constants can be used to identify various sections of a program debug database (PDB) file through the DIA SDK.

常數Constants

下列宣告為 C/c + + 宏。The following are declared as C/C++ macros.

巨集Macro Value
DiaTable_Symbols L "符號"L"Symbols"
DiaTable_Sections L "章節"L"Sections"
DiaTable_SrcFiles L "SourceFiles"L"SourceFiles"
DiaTable_LineNums L"LineNumbers"L"LineNumbers"
DiaTable_SegMap L"SegmentMap"L"SegmentMap"
DiaTable_Dbg L"Dbg"L"Dbg"
DiaTable_InjSrc L "InjectedSource"L"InjectedSource"
DiaTable_FrameData L"FrameData"L"FrameData"

範例Example

以下是使用其中一個符號的範例:Here is an example using one of these symbols:

HRESULT GetSymbolTable(IDiaEnumTables *pEnumTables, IDiaTable **pTable)
{
    HRESULT hr;
    VARIANT var;
    var.vt      = VT_BSTR;
    var.bstrVal = SysAllocString( DiaTable_Symbols );
    hr = pEnumTables->Item( var, pTable );
    return(hr);
}

規格需求Requirements

標頭: dia2。hHeader: dia2.h

請參閱See also