Solved

What I need to run a ActiveX on my homepage

Posted on 1998-05-20
2
416 Views
Last Modified: 2008-07-03
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
Comment
Question by:az1
2 Comments
 
LVL 5

Accepted Solution

by:
bin_huwairib earned 100 total points
ID: 1455962
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
 

Author Comment

by:az1
ID: 1455963
Great
One of the best answer's yet
thanks
coffeeman
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question