|
-
Oct 20th, 2005, 12:56 PM
#1
Thread Starter
New Member
very basic ActiveX DLL
I want to create a very basic ActiveX DLL to embed it in a Web Page and it
to work by passing it two numbers from JavaScript and reading the result
back in JS and display it on the page using html!
Can any one tell how to do this??
Is this just to simple ? I just want a start I have searched and cant find
anything on how to do this in vb6. I can find bits but not the whole picture!
Thanks
-
Oct 21st, 2005, 05:34 AM
#2
Thread Starter
New Member
Re: very basic ActiveX DLL
Hi
I have written a DLL in VB and on my local PC it all works OK but not on any other PC, I assume this is because the DLL is registered on my PC by VB6 IDE.
The following is the JS I use to call it from the html page and it returns 1 if it finds a running App with TestApp in the title and 0 if not.
<script language="javascript" type="text/javascript">
<!--
function test(){
var api = new ActiveXObject("Utilities.MyApi");
var temp=api.FindWindowPartial("TestApp");
How can I get this to work on other PCs (IE 6 only)?
I have packaged it to a cab and included it using the object tags generated P&D thus:
<OBJECT ID="MyAPI"
CLASSID="CLSID:0A4A3978-4D47-4141-B751-4FEB6328AF59"
CODEBASE="Utilities.CAB#version=1,0,0,0">
</OBJECT>
The dll is Utilities.dll.
But although it seems to down load it does not work! If I had any hair I would pull it out
Help please!
-
Dec 2nd, 2005, 01:12 PM
#3
Re: very basic ActiveX DLL
Do you have the VB6 runtimes installed on the machine where you are downloading it? This is something that I had faced about three and a half years ago. It just didn't work, till we got the vb runtimes. I am not sure if you are facing a similar problem.
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Dec 11th, 2005, 07:25 AM
#4
Re: very basic ActiveX DLL
I_Need_help,
I believe the first thing you want to make sure of is that your hosting machine is a Windows Server box for your ActiveX DLL to even work, since I you need to have it installed to work (unless you ae downloading it to the users machine and installing it there).
-
Dec 12th, 2005, 01:41 PM
#5
Re: very basic ActiveX DLL
Randem,
I believe the code intends to install the dll on the user's machine.
Rgds,
Abhijit
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|