Clearly exported function, cannot import

Source: Internet
Author: User


When exporting is: [email protected]@[email protected]
When importing is: [Email protected]@[email PROTECTED]_WU
The difference between G and _w, in order to study the meaning of each letter. The following experiments were done:

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]

Summarize:
1, the formal parameter has no name and does not affect the export.
2,int->h x->void void*->pax void**->papax short->f SHORT*-&GT;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
Attention:
DLL-derived functions can be viewed with the depend.exe of the VC itself.
The functions that LIB exports can be viewed with commands:
Dumpbin/linkermember d:\Globe.lib > D:\1.txt
DUMPBIN is VC automatic tool
Development environment: VS2002 (VC7)

Final Workaround:
The newly added DLL configuration is the same as the other DLLs.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Clearly exported function, cannot import

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.