visual studio中静态成员函数的默认调用约定是什么?

What is the default calling convention of static member functions in visual studio?

本文关键字:调用 约定 是什么 默认 studio 静态成员 函数 visual      更新时间:2023-10-16

微软编译器的静态成员函数的默认调用约定是什么?我可以通过将WINAPI放在它前面来改变它吗?

默认约定是在项目选项中设置的(C/c++ ->高级->调用约定),默认为__cdecl(命令行选项/Gd)

默认调用约定为cdecl。是的,您可以重写它并指定调用约定。在这方面,静态成员函数没有什么特别之处。