Look at this URL resolved: https: //blog.csdn.net/weixin_34023982/article/details/87380020
W2A function can be used to convert _TCHAR * char *, for example:
#include "the stdafx.h"
#include <stdlib.h>
#include <atlconv.h> // need to be added. 1
int the _tmain (int argc, _TCHAR * the argv [])
{
_TCHAR L * tchBuffer = "12345";
USES_CONVERSION ; // this should be added to two 2
char * szBuffer = W2A (tchBuffer); // should be added to these two. 3
int nNumber = atoi (szBuffer);
the printf ( "nNumber:% D", nNumber);
return 0 ;
}
Find a place of their own program error, can be added to the above three runs