Results 1 to 13 of 13

Thread: ActiveX control on webpage *RESOLVED*

  1. #1

    Thread Starter
    Hyperactive Member brenaaro's Avatar
    Join Date
    Sep 2001
    Location
    Montreal, Canada
    Posts
    391

    ActiveX control on webpage *RESOLVED*

    Hi,

    I want to be able to place something on my website (probably an ActiveX DLL or control?) that, when the user clicks a button on the form, will detect if he has the Visual Basic Runtime files installed or not, and trigger a download for the appropriate setup.exe

    I know how to make my own ActiveX control/dll, and have it search for the files, but I don't know how to implement it into a simple webpage and trigger it from the button.

    Also, should I use an ActiveX DLL instead of a Control?

    Thanks.
    Last edited by brenaaro; Nov 12th, 2002 at 02:08 PM.
    And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You would have to digitally sign your control. Certificate=$300 (last time I checked).

    And the user would have to accept it.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3

    Thread Starter
    Hyperactive Member brenaaro's Avatar
    Join Date
    Sep 2001
    Location
    Montreal, Canada
    Posts
    391
    Ok...what about just an ActiveX dll? Same thing?
    And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.

  4. #4
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099
    an activeX dll is on the server and runs function that you can pull out using asp pages

    eg server.createonject("project.class")


    any help??

  5. #5

    Thread Starter
    Hyperactive Member brenaaro's Avatar
    Join Date
    Sep 2001
    Location
    Montreal, Canada
    Posts
    391
    Yes that does help! Can you give me an example a bit more in-depth?

    Say I have an ActiveX dll "Project1" with an object "MyClass"
    and MyClass has a sub called "HelloWorld", how would I get a
    command button on an HTML page to create an instance of MyClass and call the sub HelloWorld (and then destroy the object? or is that not required..I don't know)

    If I can see a simple example of that, then I think I can figure out how to modify it to my needs.

    Thanks John
    And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.

  6. #6
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

  7. #7

  8. #8
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    However, an ActiveX/COM dll will not allow you to read client side directories or registry entries to see if the runtime files are installed... it runs only on the server side.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  9. #9

    Thread Starter
    Hyperactive Member brenaaro's Avatar
    Join Date
    Sep 2001
    Location
    Montreal, Canada
    Posts
    391
    But if I don't specifically tell it to run on the server, it should run on the client by default no?

    I was thinking of using the <OBJECT> tag..
    And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.

  10. #10
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Yes, you can must the <OBJECT> tag.. but you are still subject to the conditions that I outlined in my original post regarding certificates...
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  11. #11

    Thread Starter
    Hyperactive Member brenaaro's Avatar
    Join Date
    Sep 2001
    Location
    Montreal, Canada
    Posts
    391
    Hrrmm okay. Would the user be bound by his security settings on downloading the dll/control or could he "accept anyway" ?
    And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.

  12. #12
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    It would be an unsigned ActiveX control. The default security settings on IE are set to ignore it. The user would have to know to change the security settings (and know how.. easy for you and I, users it seems are idiots when it comes to this) so that it at least prompts for unsigned ActiveX. What is the ultimate goal of what you are trying to do. I understand wanting to know if they have the runtimes... but for what reason? Maybe there is another way..
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  13. #13

    Thread Starter
    Hyperactive Member brenaaro's Avatar
    Join Date
    Sep 2001
    Location
    Montreal, Canada
    Posts
    391
    What I'm trying to achieve is to give the user one single button that says "Download Now", and when they click that, it would determine if they need to download and install the vbRunTime Files as well as the software setup package.

    The setup package itself installs a small app that allows them to pick and choose which software components they want to install on their set. This part I have already, I just want to know if they need to download the vbrun60sp5.exe before hand...
    And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.

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