微软编译器的静态成员函数的默认调用约定是什么?我可以通过将WINAPI放在它前面来改变它吗?
默认约定是在项目选项中设置的(C/c++ ->高级->调用约定),默认为__cdecl
(命令行选项/Gd
)
默认调用约定为cdecl。是的,您可以重写它并指定调用约定。在这方面,静态成员函数没有什么特别之处。