【1】VS2017 MFC程序编译:
错误 LNK2001 无法解析的外部符号 __vsnprintf
【2】解决方法:
在头文件stdafx.h中加入:
#include <Windows.h>
#include <stdio.h>
int (WINAPIV * __vsnprintf)(char *, size_t, const char*, va_list) = _vsnprintf;
【1】VS2017 MFC程序编译:
错误 LNK2001 无法解析的外部符号 __vsnprintf
【2】解决方法:
在头文件stdafx.h中加入:
#include <Windows.h>
#include <stdio.h>
int (WINAPIV * __vsnprintf)(char *, size_t, const char*, va_list) = _vsnprintf;