我用D调用VC的Dll,我是生手,请大侠帮忙
在C中是这样:
extern "C" AFX_CLASS_EXPORT int GetDownloadingFileCount();
extern "C" AFX_CLASS_EXPORT CEmuleMan* CreateEmuleMan();
extern "C" AFX_CLASS_EXPORT void FreeEmuleMan(CEmuleMan* pEmuleMan);C中调用是:
获取内核指针:
CEmuleMan* pEmuleMan = CreateEmuleMan();在D中是怎么把这个引进来?
我用这个是错的:procedure GetDownloadingFileCount();stdcall;
function CreateEmuleMan():^CEmuleMan; stdcall;
procedure FreeEmuleMan(CEmuleMan* pEmuleMan);stdcall;