Referencing GUIDs

后端 未结 2 775
我在风中等你
我在风中等你 2020-12-11 04:14

I\'m trying to capture an event and reference a GUID to see which event it is. The code is below:

DWORD WINAPI AvisionEventProc(LPVOID lpParam){
    //HANDL         


        
相关标签:
2条回答
  • 2020-12-11 04:53

    The DEFINE_GUID macro either defines a named GUID as a static, or just does a forward declaration to actually be done somewhere else. Your code perhaps only have the latter, and the symbols don't have actual initialization within the project.

    See:

    • How to avoid error "LNK2001 unresolved external" by using DEFINE_GUID
    • INITGUID: An Explanation
    • How does the DEFINE_GUID macro work? - at the bottom of the page
    0 讨论(0)
  • 2020-12-11 05:04

    #include <initguid.h>should be added. That will help.

    0 讨论(0)
提交回复
热议问题