I've been screwing around for the past few days trying to search through the file system to find all files of a certain type (*.mp3 in my case). Using a bunch of Shell functions I've managed to recursively move through folders and search files...it's pretty nasty but it (almost) works. First, is there a better way to be doing this?
Second, I say it almost works because I'm trying to use the Shell API function StrRetToBuf() and Visual Studio keeps telling me it is not a defined function. I think I have all the proper libraries included and linked: (shlobj.h, shlwapi.h, shtypes.h). Anyone have any idea why I'm getting this error?
C:\Program Files\Microsoft Visual Studio\MyProjects\testIShell\main.cpp(36) : error C2065: 'StrRetToBuf' : undeclared identifier