首先,我们先来了解几个API
_getcwd
Gets the current working directory.char *_getcwd(
char *buffer,
int maxlen
);
buffer
Storage location for the path.
maxlen
Maximum length of the path in characters: char for _getcwd and wchar_t for _wgetcwd.
易知:buffer是路径
maxlen:是长度
功能是得到当前程序的路径
下一个API
URLDownloadToFile function
Downloads bits from the Internet and saves them to a file.char *_getcwd(
char *buffer,
int maxlen
);
wchar_t *_wgetcwd(
wchar_t *buffer,
int maxlen
);