Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

What I need to run a ActiveX on my homepage

Posted on 1998-05-20
2
Medium Priority
?
434 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

636 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