dll 输出函数?CRYPT_GetLicTree@@YAPAVCRedBlackTree@@H@Z该怎么定义
dll 输出函数?CRYPT_GetLicTree@@YAPAVCRedBlackTree@@H@Z该如何定义
这两个 dll 输出函数该如何定义
?CRYPT_GetLicTree@@YAPAVCRedBlackTree@@H@Z
?GetLicStrings@CRedBlackTree@@QAE?AVCString@@XZ
------解决方案--------------------
?CRYPT_GetLicTree@@YAPAVCRedBlackTree@@H@Z
对应的是
CRedBlackTree* __cdecl CRYPT_GetLicTree( int );
------解决方案--------------------
?CRYPT_GetLicTree@@YAPAVCRedBlackTree@@H@Z
--->
class CRedBlackTree * __cdecl CRYPT_GetLicTree(int)
?GetLicStrings@CRedBlackTree@@QAE?AVCString@@XZ
--->
public: class CString __thiscall CRedBlackTree::GetLicStrings(void)
我的实现:
#include <afx.h>
class __declspec(dllexport) CRedBlackTree
{
public:
class __declspec(dllexport) CString m_str;
class CString GetLicStrings(void);
};
__declspec(dllexport) class CRedBlackTree * __cdecl CRYPT_GetLicTree(int)
{
return 0;
}
class CString CRedBlackTree::GetLicStrings(void)
{
return m_str;
}
这两个 dll 输出函数该如何定义
?CRYPT_GetLicTree@@YAPAVCRedBlackTree@@H@Z
?GetLicStrings@CRedBlackTree@@QAE?AVCString@@XZ
------解决方案--------------------
?CRYPT_GetLicTree@@YAPAVCRedBlackTree@@H@Z
对应的是
CRedBlackTree* __cdecl CRYPT_GetLicTree( int );
------解决方案--------------------
?CRYPT_GetLicTree@@YAPAVCRedBlackTree@@H@Z
--->
class CRedBlackTree * __cdecl CRYPT_GetLicTree(int)
?GetLicStrings@CRedBlackTree@@QAE?AVCString@@XZ
--->
public: class CString __thiscall CRedBlackTree::GetLicStrings(void)
我的实现:
#include <afx.h>
class __declspec(dllexport) CRedBlackTree
{
public:
class __declspec(dllexport) CString m_str;
class CString GetLicStrings(void);
};
__declspec(dllexport) class CRedBlackTree * __cdecl CRYPT_GetLicTree(int)
{
return 0;
}
class CString CRedBlackTree::GetLicStrings(void)
{
return m_str;
}