用VC写DLL给PB调用

来源:互联网 发布:udp端口号 编辑:程序博客网 时间:2024/05/16 07:26

 

参考其他资料
终于搞定了用VC6写DLL给PB调用的问题
 
原来要注意两个方法
一、函数的声明方式:
    extern "C" _declspec(dllexport) int _stdcall fu_add(int x,int y)
二、要以def文件里写
    
LIBRARY "testdll"
DESCRIPTION "testdll Windows Dynamic Link Library"
EXPORTS
 ;Explioit exports can go here
fu_add @1