A
Abhishek3245
Guest
Hi,
I am developing a Windows DLL in a 64-bit environment (Visual Studio 2017, Windows 10).
I have a simple function declared as follows:
BOOL CSOrientation::IsStandardOrientation()
{
return ((m_Orientation.dfOriginX == 0.0) &&
(m_Orientation.dfOriginY == 0.0) &&
(m_Orientation.XDirection == 3) &&
(m_Orientation.YDirection == 6) &&
(m_Orientation.lTurn == 0));
}
Then i created a def file for exporting my function to dll
?IsStandardOrientation@CSOrientation@@QAEHXZ @ 229 (.def file)
it is working fine in x86 environment but as I change my platform to 64 bit I get a linking error
Error LNK2001 unresolved external symbol "public: int __thiscall CSOrientation::IsStandardOrientation(void)" (?IsStandardOrientation@CSOrientation@@QAEHXZ)
is mangling in 32 bit different from 64 bit ..??
please help me !!!!!
Continue reading...
I am developing a Windows DLL in a 64-bit environment (Visual Studio 2017, Windows 10).
I have a simple function declared as follows:
BOOL CSOrientation::IsStandardOrientation()
{
return ((m_Orientation.dfOriginX == 0.0) &&
(m_Orientation.dfOriginY == 0.0) &&
(m_Orientation.XDirection == 3) &&
(m_Orientation.YDirection == 6) &&
(m_Orientation.lTurn == 0));
}
Then i created a def file for exporting my function to dll
?IsStandardOrientation@CSOrientation@@QAEHXZ @ 229 (.def file)
it is working fine in x86 environment but as I change my platform to 64 bit I get a linking error
Error LNK2001 unresolved external symbol "public: int __thiscall CSOrientation::IsStandardOrientation(void)" (?IsStandardOrientation@CSOrientation@@QAEHXZ)
is mangling in 32 bit different from 64 bit ..??
please help me !!!!!
Continue reading...