The first is to directly export the function name as follows code:
#ifdef__cplusplus
#define TEXPORT extern "C" _declspec (dllexport)
#dlse
#define Texport _declspec (dllexport)
Texport BOOL Fun ();//This is to export the function
This method sees the name of the function when it looks at the DLL.
The second type is the following code for the export sequence number:
BOOL _stdcall fun ();
In the project right-click Add New project Point module definition file. Def
Write in def file
LIBRARY "DLL Name"
Exports
Fun @1 NONAME
Such exported functions will not see the function name. Note that the sequence number is to be written sequentially.
Defines the # define # Texport _declspec (dllimport) in the file that is called when the function is exported in the DLL sequence.
The other calls are the same.
http://blog.csdn.net/yjwffgip456/article/details/18702547
C + + DLL export function two methods (export ordinal that way, others do not see the function name)