|
-
Nov 12th, 2002, 09:52 AM
#1
Thread Starter
Hyperactive Member
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.
-
Nov 12th, 2002, 11:17 AM
#2
Frenzied Member
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..
-
Nov 12th, 2002, 11:22 AM
#3
Thread Starter
Hyperactive Member
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.
-
Nov 12th, 2002, 11:52 AM
#4
<?="Moderator"?>
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??
-
Nov 12th, 2002, 11:58 AM
#5
Thread Starter
Hyperactive Member
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.
-
Nov 12th, 2002, 12:28 PM
#6
<?="Moderator"?>
-
Nov 12th, 2002, 12:30 PM
#7
<?="Moderator"?>
-
Nov 12th, 2002, 03:34 PM
#8
Frenzied Member
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..
-
Nov 12th, 2002, 03:37 PM
#9
Thread Starter
Hyperactive Member
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.
-
Nov 13th, 2002, 02:34 PM
#10
Frenzied Member
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..
-
Nov 13th, 2002, 02:38 PM
#11
Thread Starter
Hyperactive Member
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.
-
Nov 13th, 2002, 02:44 PM
#12
Frenzied Member
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..
-
Nov 13th, 2002, 02:50 PM
#13
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|