Results 1 to 2 of 2

Thread: VB Custom ActiveX in WebPage

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    1

    VB Custom ActiveX in WebPage

    Hi All,

    I have a question regarding using an ActiveX control I created in VB on a webpage.

    So I used the Visual Basic 6.0 ActiveX control project and created a control. This control has a bunch of command buttons and other stuff for a little interface I need. I compiled it and made the .ocx file (clientside.ocx in my case).

    Now to use it in my webpage, I used the following HTML code:

    <OBJECT ID="MyObject1" CLASSID="CLSID:7267BCED-B206-47A4-8E8D-B34600461863"
    CODEBASE="/control/client side.ocx">
    </OBJECT>

    The class ID is from the registry. I tested this on my laptop locally and it obviously worked fine. Then I deployed it to my Apache 2.2 webserver hosted on my laptop. Tried it from a different computer and the ActiveX control wouldn't show up. IE asked me to install the ActiveX, I did. Then there was just a little "X" mark on the screen where my ActiveX object should have been. Rest of the page loaded normally.

    Any ideas as to what I'm doing wrong? Please help!!!

    Thanks!

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Re: VB Custom ActiveX in WebPage

    Quote Originally Posted by vik_221
    Then I deployed it to my Apache 2.2 webserver hosted on my laptop.
    Did you register that file also using the RegSvr utility? Does this file exist beneath your "website directory\control\" path with the name of "client side.ocx"? Have you checked your local IE web browser security settings and that they permit you using ActiveX controls?

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

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