请问:函数前面的"_"起什么作用?如:_stdcall和__stdcall有什么区别?

willyhan 2001-11-15 01:05:52
...全文
127 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
liu_feng_fly 2001-11-15
  • 打赏
  • 举报
回复
_stdcall和__stdcall没有区别,就像这样
#define __stdcall _stdcall
handsome1234 2001-11-15
  • 打赏
  • 举报
回复
加__ and _都不是标准函数,对吗?
willyhan 2001-11-15
  • 打赏
  • 举报
回复
Use of two sequential underscore characters ( __ ) at the beginning of an identifier, or a single leading underscore followed by a capital letter, is reserved for C++ implementations in all scopes. You should avoid using one leading underscore followed by a lowercase letter for names with file scope because of possible conflicts with current or future reserved identifiers.

twist 2001-11-15
  • 打赏
  • 举报
回复
呵呵,又长棋了
BlueDog 2001-11-15
  • 打赏
  • 举报
回复
非常有用
在windows中调用一个函数时有可能有C 或 Pascal两种调用方式
这两种方式在处理返值和参数时是不同的
在windows中系统采用的是介于两种之间的方式,因此Microsoft特别地定义
_stdcall和__stdcall
在编译器中看到这两个字,就知道如何来处理参数
他们主要是16位和32位的区别
twist 2001-11-15
  • 打赏
  • 举报
回复
没用,他们是两个函数

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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