16,472
社区成员
发帖
与我相关
我的任务
分享
UpdateData(true);
HINSTANCE hLib = LoadLibrary("E:\\杨-Jason\\Exercise(Demo)\\WOSLinkIOTester\\MFCTester\\Debug\\WOSLinkIO.dll");
char * url = "http://messaging-a.365wos.org:9901/integrate/login.action?loginid=1001&passwd=dbb&client=%57%4f%53%4c%49%4e%4b%20%33%39";
char * url1 = "http://messaging-a.365wos.org:9901/integrate/buildconnection.action?format=json&";
if (hLib != NULL)
{
CALLUUIM pCallUUIM = (CALLUUIM)GetProcAddress(hLib, "CallUUIM");
fn_StartConnection pStartConnection=(fn_StartConnection)GetProcAddress(hLib, "StartConnection");
if (!pCallUUIM){
// handle the error
FreeLibrary(hLib);
} else {
// call the function
char * html = (*pCallUUIM)(url);
char * html1 = (*pStartConnection)(url1, onData, onError);
}
}
FreeLibrary(hLib);
UpdateData(false);
这是主要代码: