如何将System :: Int32转换为wchar_t *

|| 我有这段代码:
int casted_dbValue=3;
wchar_t* nativeData=(wchar_t*)casted_dbValue;
int
到const2ѭ之间的转换不正确。如何处理此错误?     
已邀请:
您是否尝试过
_itow
功能?
wchar_t * _itow(
                int value,
                wchar_t *str,
                int radix
                );
或者,更安全的版本
_itow_s
。 第一个参数(
value
)是要转换的整数值,第二个参数是字符串结果,第三个参数是数值的底数。它返回一个指向“ 7”值的指针。     

要回复问题请先登录注册