69,371
社区成员
发帖
与我相关
我的任务
分享
class IQuoteApi
{
public:
//API函数
virtual bool __cdecl Open(TAddressField& addr) = 0;
virtual void __cdecl Close() = 0;
virtual bool __cdecl IsOpen() = 0;
};
extern "C"
{
//认证函数 认证码 针对每个开发商 一个
bool __cdecl CertApi(TCertInfoType cert, TLogPathType path);
}
[DllImport("Api.Dll", CallingConvention = CallingConvention.Cdecl)]
public static extern bool CertApi(string cert,string path);
[DllImport("Api.Dll", CallingConvention = CallingConvention.Cdecl)]
public static extern int Close();
bool certInfo;
certInfo = CertApi("sdfsasfwer", "asdfdf");
int c;
c = Close();
class IQuoteApi
{
public:
//API函数
virtual bool __cdecl Open(TAddressField& addr) = 0;
virtual void __cdecl Close() = 0;
virtual bool __cdecl IsOpen() = 0;
};