怎么把字符串作为传入,传出参数
答案:2 悬赏:70 手机版
解决时间 2021-02-06 22:12
- 提问者网友:雾里闻花香
- 2021-02-06 07:14
怎么把字符串作为传入,传出参数
最佳答案
- 五星知识达人网友:猎心人
- 2021-02-06 08:10
int GetErrorDescriptionObject(DWORD dwErrCode,LPTSTR lpBuffer)
{
BOOL fOK = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER,
NULL,
dwErrCode,
MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT),
(LPTSTR) lpBuffer,
0,
NULL);
or
int GetErrorDescriptionObject(DWORD dwErrCode,LPTSTR *lpBuffer)
{
BOOL fOK = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER,
NULL,
dwErrCode,
MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT),
(LPTSTR) *lpBuffer,
0,
NULL);
{
BOOL fOK = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER,
NULL,
dwErrCode,
MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT),
(LPTSTR) lpBuffer,
0,
NULL);
or
int GetErrorDescriptionObject(DWORD dwErrCode,LPTSTR *lpBuffer)
{
BOOL fOK = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER,
NULL,
dwErrCode,
MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT),
(LPTSTR) *lpBuffer,
0,
NULL);
全部回答
- 1楼网友:一把行者刀
- 2021-02-06 09:45
支持一下感觉挺不错的
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯