As usual, you spend 2 days looking for something, finally reach out for help, and solve it 5 minutes later
The answer is that the gpedit.h file just declares an external reference to the symbol name without initializing it. Hence the linker error. (I was wondering how I could get a linker error on an id!)
Anyway, the solution to situations where the COM CLSID or IID is declared, but not initialized, is to include "InitGuid.h"
Krista


LinkBack URL
About LinkBacks
Reply With Quote
