1

Topic: To add object in IHTMLWindow2

I can not find in any way how correctly all the same to do DISPATCH_PROPERTYPUTREF or DISPATCH_PROPERTYPUT. We have the code: CComQIPtr <IDispatchEx> dispEx (window); DISPID id; HRESULT res = dispEx-> GetDispID (CComBSTR (L "My"), fdexNameEnsure, &id); if (FAILED (res)) return; CComVariant v; v.pdispVal = someFunction; v.vt = VT_DISPATCH; DISPID namedArgs [] = {DISPID_PROPERTYPUT}; DISPPARAMS params = {&v, namedArgs, 1, 1}; dispEx-> InvokeEx (id, LOCALE_USER_DEFAULT, DISPATCH_PROPERTYPUT, &params, NULL, NULL, NULL); Normally all works like clock-work, but here was clarified that on certain systems with certain version IE on some pages we receive process falling in InvokeEx because of Access Violation somewhere in bowels Jscript9.dll Makeshift will cause res GetDispID (CComBSTR (L "My"), 0, &someId) and to check up res together with comparing ' id ' with ' someId '. Here here it was thought it can is necessary DISPATCH_PROPERTYPUTREF? Whether there is a difference in this case?

2

Re: To add object in IHTMLWindow2

Here it is important to understand, it you are guilty or IE  the configuration at the user. On good, it is finite JScript should not to fall, should return an error. Can there  BHO costs or other nonsense. I would write simple implementation on C# where through dynamic addressed to it  and looked, whether it crashes down at the client. If is not present - your error. If yes - that a curve config at the client (happens not too rarely).

3

Re: To add object in IHTMLWindow2

Hello, aloch, you wrote: A> Here it is important to understand, it you are guilty or IE  the configuration at the user. On good, it is finite JScript should not to fall, should return an error. Just problems at one client was not It was played back by the test machine both that on one and that after years of checks of the same code. A> I would write simple implementation on C# where through dynamic addressed to it  and looked, whether it crashes down at the client. If is not present - your error. If yes - that a curve config at the client (happens not too rarely). While there is no access to this computer that all to check up. The load checks which find more serious problems smile there run

4

Re: To add object in IHTMLWindow2

Hello, _NN _, you wrote: If clients do not have problems - anything it is not necessary to do that.