简体   繁体   English

在C ++ DLL中使用__stdcall

[英]Use of __stdcall with a C++ DLL

I'm creating a C++ dll for Excel and have been successfully using "__stdcall" in front of the C++ functions that Excel will call. 我正在为Excel创建一个C ++ dll,并且已成功在Excel将调用的C ++函数之前成功使用“ __stdcall”。 However, some of these dll functions call on other functions within the dll to perform calculations and I'm getting inaccurate returns. 但是,其中一些dll函数会调用dll中的其他函数来执行计算,而我得到的回报不准确。

Does stdcall make functions "invisible" to calls from within the dll? stdcall是否会使dll内部的函数“不可见”?

Chris 克里斯

OK, it was just a stupid transposition in my code causing the problem, but "__stdcall" does not affect function calls internal to the dll (C++). 好的,这只是导致问题的代码中的一个愚蠢的换位,但是“ __stdcall”不会影响dll(C ++)内部的函数调用。

Chris 克里斯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM