IShellLink GetPath and Dev-C++...
The best match to a search for finding a shortcut's target is http://cboard.cprogramming.com/showthread.php?t=61943.
But using Dev-C++ (4.9.9.2), I get several errors when using GetPath, here is the function...
Code:
char* getLinkTarget(char *sLink) {
WIN32_FIND_DATA wfs;
GetPath(sLink, MAX_PATH, &wfs, SLGP_RAWPATH);
MessageBox(hWnd, wfs.cFileName, "GetPath", 0);
return "";
}
Dev-C++ gives me the following errors...
Code:
[Warning] passing arg 1 of `GetPath' from incompatible pointer type
[Warning] passing arg 2 of `GetPath' makes pointer from integer without a cast
[Warning] passing arg 3 of `GetPath' from incompatible pointer type
I program through trial and error (because my only learning path for C is the internet and C for Dummies). I've tried several types of typecasting with no real change. I also can't find any examples for c (other than that post which I copied and pasted to try and get to work, which it didn't.
Any and all help is appreciated.