[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 441
  • Last Modified:

What I need to run a ActiveX on my homepage

Hi
Thanks all....for the previous answers
Now I wánt to make a nice homepage, Like everybody else I
Suppose
I've done an ocx and have a dll that I upload to my homepage and it works fine for me. I can use all the buttons and so forth, but when my friends got to my homepage all they get is that red little thing. no Q about if you want to install the ctrl, nada!
What am I doing wrong
The html code is straight forward I link to the object clsid nr:
This is maybe a VBScript Q.. of a html Q...I don't know
Taking a long shot
coffeeman@swipnet.se
0
az1
Asked:
az1
1 Solution
 
bin_huwairibCommented:
az1,

When you compiled your OCX in your machine VB registered it automatically, so including the CLSID in HTML file does not mean that it will work somewhere else where this OCX was not registered!
You must create a setup disk for your OCX in order to let others to download it and that by using VB setup wizard application with Generate Internet Download Setup option. Basically the setup will create a CAB file which contains your OCX and other necessary files and HTML file contains a definition to be added in your HTML file that going to use the OCX.

The HTML file which setup will generate is looking like this:
<HTML>
<!--      If any of the controls on this page require licensing, you must
      create a license package file.  Run LPK_TOOL.EXE to create the
      required LPK file.  LPK_TOOL.EXE can be found on the ActiveX SDK,
      http://www.microsoft.com/intdev/sdk/sdk.htm.  If you have the Visual
      Basic 5.0 CD, it can also be found in the \Tools\LPK_TOOL directory.

      The following is an example of the Object tag:

<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331">
      <PARAM NAME="LPKPath" VALUE="LPKfilename.LPK">
</OBJECT>
-->

<OBJECT ID="UserInfo" WIDTH=128 HEIGHT=88
CLASSID="CLSID:7410AFB3-D7C3-11D1-906A-00A0245D1670"
CODEBASE="\\DPCNT11\Controls\DPCFunc.CAB#version=1,0,0,0">
</OBJECT>
</HTML>

You must place the cab file in a directory on the server and set the full path in the CODEBASE tag, like the above example.

Now when your friend will try to access your page browser will prompt to download you cab file, but you will face one problem here is that the browser will not trust your cab file because it does not signed with a valid signature which is another story. Any way you can workaround this by setting the browser's security to minimum or none.


Best regards
Bin Huwairib
0
 
az1Author Commented:
Great
One of the best answer's yet
thanks
coffeeman
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now