开发者

Do I need to use _stdcall when I export functions to be used by other languages?

开发者 https://www.devze.com 2023-03-06 23:57 出处:网络
In order for my function be used by other language, do I have to use _stdcall to declare my f开发者_Go百科unctions in C++?It may not be strictly necessary, but it\'s generally the path of least resist

In order for my function be used by other language, do I have to use _stdcall to declare my f开发者_Go百科unctions in C++?


It may not be strictly necessary, but it's generally the path of least resistance. Just for example, if the other language happened to be C, you could probably use _cdecl or _fastcall. If you want to support arbitrary languages, though, _stdcall is the obvious choice.

0

精彩评论

暂无评论...
验证码 换一张
取 消