Created
February 1, 2011 05:45
-
-
Save Fryguy/805479 to your computer and use it in GitHub Desktop.
shlwapi.h methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
#include <shlwapi.h> | |
void main() | |
{ | |
CHAR *path; | |
BOOL ret; | |
path = "C:/projects/rubyinstaller/sandbox"; | |
ret = PathFileExists(path); | |
printf("%s: %d\n", path, ret); | |
path = "C:/projects/rubyinstaller/sandbox/does/not/exist"; | |
ret = PathFileExists(path); | |
printf("%s: %d\n", path, ret); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh-3.1$ gcc test.c -o test.exe | |
C:\Users\jfrey\AppData\Local\Temp\ccbBiG7k.o:test.c:(.text+0x24): undefined reference to `_imp__PathFileExistsA@4' | |
C:\Users\jfrey\AppData\Local\Temp\ccbBiG7k.o:test.c:(.text+0x58): undefined reference to `_imp__PathFileExistsA@4' | |
collect2: ld returned 1 exit status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment