32位到64位dll转换 [英] 32 bit to 64 bit dll conversion
问题描述
Hi,
我在64位环境中开发Windows DLL(Visual Studio 2017,Windows 10 )。
I am developing a Windows DLL in a 64-bit environment (Visual Studio 2017, Windows 10).
我有一个简单的函数声明如下:
I have a simple function declared as follows:
然后我创建了一个def文件,用于将我的函数导出到dll
Then i created a def file for exporting my function to dll
?IsStandardOrientation @ CSOrientation @@ QAEHXZ @ 229 (。def file)
?IsStandardOrientation@CSOrientation@@QAEHXZ @ 229 (.def file)
它在x86环境下工作正常,但是当我将平台更改为64位时,我收到链接错误
it is working fine in x86 environment but as I change my platform to 64 bit I get a linking error
错误 LNK2001 未解析的外部符号" public:int __thiscall CSOrientation :: IsStandardOrientation(void)"(?IsStandardOrientation @ CSOrientation @ @QAEHXZ)
Error LNK2001 unresolved external symbol "public: int __thiscall CSOrientation::IsStandardOrientation(void)" (?IsStandardOrientation@CSOrientation@@QAEHXZ)
在32位与64位不同的情况下错位.. ??
is mangling in 32 bit different from 64 bit ..??
请帮帮我!!!!!
please help me !!!!!
推荐答案
试试这个名字:
?IsStandardOrientation @ CSOrientation @@ QEAAHXZ
?IsStandardOrientation@CSOrientation@@QEAAHXZ
这篇关于32位到64位dll转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!