In order for my function be used by other language, do I have to use _stdcall to declare my functions in C++?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
_cdeclor_fastcall. If you want to support arbitrary languages, though,_stdcallis the obvious choice.