?
Solved

What I need to run a ActiveX on my homepage

Posted on 1998-05-20
2
Medium Priority
?
430 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
bin_huwairib earned 400 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

764 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