这个VC写的dll该如何调用啊在vb里
程序代码:
extern "C" __declspec(dllexport) void * __cdecl CreateSocket(const GUID & Guid, DWORD dwInterfaceVer) { //建立对象 CClientSocket * pClientSocket=NULL; try { pClientSocket=new CClientSocket(); if (pClientSocket==NULL) throw TEXT("失败"); void * pObject=pClientSocket->QueryInterface(Guid,dwInterfaceVer); if (pObject==NULL) throw TEXT("失败"); return pObject; } catch (...) {} //清理 SafeDelete(pClientSocket); return NULL; }
输出函数是CreateSocket
用vb该如何调用啊???