Jump to content
  • Advertisement
Sign in to follow this  
Nice Coder

[web] Adding a usercontrol to a website

This topic is 4712 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, 've been doing some thinking... If i have a user control (created in Vb6), how would i host it onto a website? In the source, it just has
<HTML><BODY><OBJECT classid="clsid:BAB8DF37-5FF3-4A7E-9397-E479623AF6FC">
</OBJECT></BODY></HTML>

Hmmm. My only other options are using an ActiveX dll, An ActiveX exe or a normal exe. What would be the best way to upload one of these onto a website/How would i do it? From, Nice coder

Share this post


Link to post
Share on other sites
Advertisement
Nobody is going to want to download your ActiveX control. Most web browsers (that support ActiveX at all!) will be configured not to download unsigned code. Some will be configured not even to download signed code - in fact, downloading no code at all.

Plus also, there is the issue of the fact that, because it's written in VB, it will require the VB runtime libraries (of the appropriate version) on the client machine.

By all means read the documentation on how to specify ActiveX controls to be downloaded - but I think it's highly unlikely that anybody will download it (unless it's corporate policy or something).

Mark

Share this post


Link to post
Share on other sites
I'm just trying to build a website bot, which seems to be neigh on impossible atm.

One thing - How do they encode the program in that number? Is it some sort of url?

From,
Nice coder

Share this post


Link to post
Share on other sites
No, the program is not encoded in the class ID.

All the Class ID is, is a unique ID pointing into the Windows registry. The class has to be registered (with regsvr32 or something). This puts information into the registry telling OLE where to find the class's executable (exe or DLL usually).

It won't work unless the files are already physically present on the machine and registered, unless you also provide a codebase property (or something) to tell it where to find the files on the web - this is a URL. But it won't install automatically - it will ask the user, or do nothing depending on security settings.

Mark

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!