#ifdef _DEBUG_#include void LogWrite(char *msg, ...){char __msg[2048] = {0,};va_list vargs;va_start(vargs, msg);vsprintf_s(__msg, sizeof(__msg), msg, vargs );va_end(vargs);FILE* g_fp = NULL;char logPath[1024];GetTempPath(1024, logPath);std::string path(logPath);path.append("log.txt");g_fp = fopen(path.c_str(), "a+");DWORD dwWrite = 0;std::string _log(__msg);_log.append("\n");size_t ret = fwrite ..