Solved

What I need to run a ActiveX on my homepage

Posted on 1998-05-20
2
406 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now