Code:char* winPath[MAX_PATH];
GetWindowsDirectory(winPath, MAX_PATH);
printf("%s\n", winPath);
from http://msdn.microsoft.com/library/de...sdirectory.asp :Quote:
[Warning] passing arg 1 of `GetWindowsDirectoryA' from incompatible pointer type
How should I declare it? thanx!Quote:
LPTSTR lpBuffer, Pointer to the buffer to receive the null-terminated string..