请帮我解答wmain()的意思

airmain 2003-05-09 08:28:30
int __cdecl wmain(int argc, wchar_t *argv[])
我在看netbios方面的编程,在msdn上面看到这种方式的main,想问这是什么意思?一般在什么样的情况的使用呢?其中的w是不是表示“宽”的意思?

还有,LPCWSTR szIpc = L"\\IPC$"; 这种赋值是什么意思,我不明白L在这里面的意思,类似的还有RemoteResource[0] = L'\\'

请帮忙解答,谢谢
...全文
72 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
babiq 2003-05-09
  • 打赏
  • 举报
回复
Every C program has a primary (main) function that must be named main. If your code adheres to the Unicode programming model, you can use the wide-character version of main, wmain.

好像是在使用unicode的时候用的,记不清了。

main()是在使用ascii的时候用的

4,356

社区成员

发帖
与我相关
我的任务
社区描述
通信技术相关讨论
社区管理员
  • 网络通信
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧