Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello:
In some computer,i call the function of InvokeHelper failed,but i don't get any error message,While in others it succeed.

C++
 static BYTE parms[] = VTS_BSTR VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT ;  
try
{
  InvokeHelper(0x68, DISPATCH_METHOD, VT_EMPTY, NULL, parms, URL, Flags, TargetFrameName, PostData, Headers);
}
catch (COleDispatchException* pException)
{
   CString strErrorMsg;
   pException->GetErrorMessage(strErrorMsg.GetBuffer(256), 256);
   strErrorMsg.ReleaseBuffer();
   AfxMessageBox(strErrorMsg);
}
catch(...)
{
  CString strErrorMsg = "some error has happened";
  AfxMessageBox(strErrorMsg);
}
Posted
Updated 6-Jan-14 20:46pm
v2
Comments
Mohibur Rashid 7-Jan-14 2:46am    
what do you mean by some computer?
nv3 7-Jan-14 2:57am    
Perhaps because on one computer the proper version of the ActiveX control is installed and on the computer it is not?

1 solution

what should i do if i want to know whether the custom has been installed the proper version of ActiveX or not?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900