The default calling convention is register,
but interfaces shared among modules (especially if they are written in
different languages) should declare all methods with stdcall. Use safecall
to implement CORBA interfaces. On Windows, you can use safecall to
implement methods of dual
interfaces.
For more information about calling conventions, see Calling conventions.
缺省的调用约定是register,而在模块中(特别当这些模块由不同语言编写时)共享的接口应当用stdcall声明所有的方法。用safecall实现CORBA接口。在Windows中,可以用safecall实现双重接口的方法。
有关调用约定的更多信息,见调用约定。