Define_GUID

This is a discussion on Define_GUID within the C++ Programming forums, part of the General Programming Boards category; I need to keep track of my program's GUID, so i define it at the top using the following code. ...

  1. #1
    Unregistered
    Guest

    Question Define_GUID

    I need to keep track of my program's GUID, so i define it at the top using the following code.


    DEFINE_GUID(PROGRAMID,
    0x5ea9ff59, 0x657b, 0x40a1, 0xa5, 0x9, 0x76, 0xf0, 0xe7, 0xdd, 0xd0, 0x64);


    but when i try to use it I get the error "Undefined Symbol _PROGRAMID" and i dont know what i'm doing wrong.... any suggestions? i have no idea what that underscore is added about

  2. #2
    Registered User
    Join Date
    Jun 2002
    Posts
    151
    You need to include the header in which the macro defined. Try something like -

    #include "guiddef.h"

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21