Results 1 to 5 of 5

Thread: very basic ActiveX DLL

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    4

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    4

    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!

  3. #3
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    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

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    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).

  5. #5
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    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
  •  



Click Here to Expand Forum to Full Width