I’ve seen several examples on the net that call a function called “succeeded”. However, when I attempt to use said examples, I get an undeclared identifier error.
eg: if Succeeded(SHGetFolderPath(...)) then ...
Is there some package I need to include to use this function? Google has not been very helpful in finding an answer to this.
The
Succeededfunction is declared in both theWindowsandActiveXunits. It doesn’t much matter which you use, but if your program does not currently referenceActiveXthen it makes more sense to useWindowsin order to gain access to this function.