STDMETHODIMP CThreadingClas::ser_conn(BSTR serport, BSTR log, BSTR pass, BSTR* ret) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); // TODO: Add your implementation code here CStringA s(serport); csServer_Server=s; CStringA p1(pass); csServer_Password=p1; csServer_Login=_wtoi(log); int res; if((res=server_q->Connect(csServer_Server))==RET_OK && (res=server_f->Connect(csServer_Server))==RET_OK) { if((res=server_q->Login(csServer_Login,csServer_Password))==RET_OK && (res=server_f->Login(csServer_Login,csServer_Password))==RET_OK) { *ret=bstr_t(server_q->ErrorDescription(res)); } else { *ret=bstr_t(server_q->ErrorDescription(res)); } } else { *ret=bstr_t(server_q->ErrorDescription(res)); } return S_OK;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)