The client (IE) needs to lower the security level when calling the com written by dephi.

Source: Internet
Author: User
After searching for a long time, I thought it was a signature issue. No. Control signature and code security are two concepts.

After searching for CB for a long time, I found that I could use IObjectSafety. So I wanted to find the relevant Delphi code, but I didn't find it. I checked the help documentation and didn't even explain the node. The brute-force command also inherits IObjectSafety from com, prompting that the two methods are not implemented. Thank you! Check the original code and write down the implementation. Compile. If no result is returned, return result: = s_ OK;

Compiled, passed! Open the HTML of the test and the result passes! Function tditchestree. getinterfacesafetyoptions (const IID: tiid;
Pdwsupportedoptions, pdwenabledoptions: pdword): hresult;
Begin
Result: = s_ OK;
End;

Function tditchestree. setinterfacesafetyoptions (const IID: tiid;
Dwoptionsetmask, dwenabledoptions: DWORD): hresult;
Begin
Result: = s_ OK;
End;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.