导出时是:[email protected]@[email protected]
导入时是:[email protected]@[email protected]_WU
G和_W的区别,为了研究各字母的含义。做了如下实验:
void fun()=>
[email protected]@YAXXZ
void fun(int)=>
[email protected]@[email protected]
void fun(int a,int b)=>
[email protected]@[email protected]
void fun(int a,int b,int c)
[email protected]@[email protected]
void* fun()=>
[email protected]@YAPAXXZ
void** fun()==>
[email protected]@YAPAPAXXZ
void fun(short * )
[email protected]@[email protected]
short* fun(short * )
[email protected]@[email protected]
int fun(bool,char,short int,long,float,double )
[email protected]@[email protected]
int fun(bool,char,short int,long,float )
[email protected]@[email protected]
int fun(bool,char,short int,long)=>
[email protected]@[email protected]
int fun(bool,char,short int )=>
[email protected]@[email protected]
int fun(bool,char)=>
[email protected]@[email protected]
int fun(bool )=>
[email protected]@[email protected]
int fun(bool a)=>
[email protected]@[email protected]
int fun(CString)=>
[email protected]@[email protected][email protected][email protected]@[email protected]@@@@[email protected]@@Z
typedef ATL::CStringT< TCHAR, StrTraitMFC< TCHAR > > CString;
int fun(char)=>
[email protected]@[email protected]
int fun(wchar_t)
[email protected]@[email protected]
int fun(CArray<int,int>);
[email protected]@[email protected]@@@Z
int fun(CTime)
[email protected]@[email protected]@@@Z
class CTestClass
{
};
_BMFGLOBE_EXPIMP int fun(class CTestClass);
[email protected]@[email protected]@@Z
int fun(unsigned char,unsigned int,unsigned long)
[email protected]@[email protected]
int fun(__int64)
[email protected]@[email protected]
int fun(unsigned __int64 )
[email protected]@[email protected]
总结:
1,形参有没有名字,不影响导出。
2,int->H X->void void* ->PAX void**->PAPAX short->F short*->PAF
bool->N char->D long->J float->M double->N
CTime->[email protected] CArray<int,int>->[email protected]
wchar_t(unsigned short)->G unsigned char->E ,unsigned int->I,unsigned long->K
unsigned __int64->_K
注意:
dll导出的函数可以用VC自带的depend.exe查看。
lib导出的函数可以用命令查看:
dumpbin /LINKERMEMBER d:\Globe.lib > d:\1.txt
dumpbin是VC自动工具
开发环境:VS2002(VC7)
最后解决方法:
新加的dll 配置弄成和其他dll一样。
版权声明:本文为博主原创文章,未经博主允许不得转载。