سؤال

I want to use two 3rd party libraries in my project but one was compiled with __stdcall convention and another with __cdecl. No matter what I set my project property to, the LINKER fails to link one library or another. Is there a way to do this?

هل كانت مفيدة؟

المحلول

The calling convention external code is compiled with should be irrelevant. As long as the appropriate functions are declared with the correct convention, the convention you use for your own code matters not and it will work whatever choice you make.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top