Is it necessary to care about calling convention of a function that is not exported from dll

StackOverflow https://stackoverflow.com/questions/18930194

문제

I am currently working on a project that involves creating some DLL libraries with C that will be shipped to customers. The DLL exports some functions and all exported functions use the __stdcall calling convention. The library also contains some functions that are not exported but are used by the exported functions. Is it necessary to care about the calling convention of these local functions? Can I leave the calling convention of the local functions to the default?

도움이 되었습니까?

해결책

No, you do not need to worry about calling conventions of internal functions. Yes, you can leave them as they are.

Calling convention is an instruction for a compiler. You need to worry about that only if you want to call your function "manually", e.g. from Assembly or other languages.

Your DLL is already compiled and internal functions are linked.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top