vc6 中写的dll在 pb7,vb6 中调用的问题,总是报错dll 对应工程 odbcapi,生成 odbcapi.dllodbcapi.h 文件里面这么申明
extern "C"  __declspec(dllexport) int  __stdcall  aaa(int a);odbcapi.cpp 里面实现
extern "C"  __declspec(dllexport) int  __stdcall   aaa(int a)
{
return  a + 10;}在 pb7 里面这么申明(odbcapi.dll 在 D:\odbcdll\vcnet\odbcapi\Debug\ 下)
function long aaa(long a) library "D:\odbcdll\vcnet\odbcapi\Debug\odbcapi.dll"调用总是出现error calling extern function aaa要生成一个可以在 pb,vb,delphi 里面调用的 dll,输出函数到底要怎么申明
是不是要写 .def 文件