使用Vs自带工具:开始菜单--》Microsoft Visual Studio 2010--》 Visual Studio Tools--》Visual Studio 命令提示符
输入dumpbin /exports 动态库.bll(动态库的存放地址) 获取里面所有方法对应的名称
eg: dumpbin /exports d://yazuoTerminal.dll
在C#调用动态库时:添加EntryPoint属性,属性内容输入
[DllImport("yazuoTerminal.dll", EntryPoint = "?VoidSale@CVODLibrary@@QAEHXZ")]
public static extern int VoidSale();
[DllImport("yazuoTerminal.dll", EntryPoint = "?StandardSale@CVODLibrary@@QAE?AW4enVODReturnVal@@XZ")]
public static extern int StandardSale();