Visual Studio 中静态成员函数的默认调用约定是什么? [英] What is the default calling convention of static member functions in visual studio?

查看:30
本文介绍了Visual Studio 中静态成员函数的默认调用约定是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

What is the default calling convention of static member functions for Microsoft's compiler? Can I change it by placing WINAPI in front of it?

推荐答案

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

The default calling convention is cdecl. Yes, you can override this and specify the calling convention. In this regard there is nothing special about static member functions.

这篇关于Visual Studio 中静态成员函数的默认调用约定是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆