CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2000
    Posts
    3

    Safe for initialization and scripting on the Internet

    Hi,
    I have a few Visual Basic 6 DLLs and OCXs on a DHTML page, and I am running them on my computer (no server involved). The problem is that every time I open the page, I get the message: "Some software (ActiveX controls) on this page might be unsafe. It is recommended that you not run it. Do you want to allow it to run? "

    I packaged the components with Package and Deploy and made them safe for initialization and scripting, but it doesn't help. Also, the controls manipulate files so I can't sign them.

    Any thoughts ?

    Thanks,
    yasmin


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Safe for initialization and scripting on the Internet

    IMHO if your ocx manipulates files it is obviously NOT safe for scripting.
    OTOH, you said that you run the OCX on an HTML page without any server involvement.
    Thus, you could write an HTA application (IE 5 required) and live without any limits. In an HTA app you can use anything w/o any warnings.


  3. #3
    Join Date
    Jan 2000
    Location
    Germany
    Posts
    8

    Re: Safe for initialization and scripting on the Internet

    Hi

    Add in Registry this both Keys

    HKEY_LOCAL_MASCHINE\SOFTWARE\Classes\CLSID\your control clsid\CLSID\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}"

    HKEY_LOCAL_MASCHINE\SOFTWARE\Classes\CLSID\your control clsid\CLSID\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}"

    IE do the same by installing your Control from WEB. There use xxx.inf at the .cab-File.

    Now also Events are requested.





  4. #4
    Join Date
    Feb 2000
    Posts
    3

    Re: Safe for initialization and scripting on the Internet

    Thanks !! You're a genius !!

    I found out about these keys a month ago, but now I see I didn't add the {} around the key.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured