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!
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.
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).
Re: very basic ActiveX DLL
Randem,
I believe the code intends to install the dll on the user's machine.
Rgds,
Abhijit