“1>正在連結... 1>CDXGraph.obj : error LNK2019: 無法解析的外部符号 "int __cdecl wsprintfWInternal(wchar_t *,wchar_t const *,...)" (?wsprintfWInternal@@YAHPA_WPB_WZZ),該符号在函數 "private: void __thiscall CDXGraph::AddToObjectTable(void)" ([email protected]@@AAEXXZ) 中被引用
解決方法:
把wsprintfW改為swprintf即可。
swprintf(wsz, L"FilterGraph p pid x", (DWORD_PTR)mGraph, GetCurrentProcessId());