Click to See Complete Forum and Search --> : Embedding components in Web Pages


vishal hiremath
November 12th, 2001, 11:37 PM
using COM can we devlop components that can be embedded into the web pages witout using Active X Controls...
Are there any alternate solutions for this

helloworld

eahmed
November 13th, 2001, 08:22 AM
Yes you can!

An ActiveX control usually has a visual interface; however, you can develop a control that doesn't have an interface at all and work with it using JScript or VBScript within the browser. You just need to create a 'regular' COM object, download it to the user's system, and then work with it in your code.

I wrote an article a while ago that, among other things, demonstrates how to automatically download, install, and use a COM object on within Internet Explorer. The article refers to Windows NT 4.0 and Internet Explorer 4.0 however, it should work under Windows 2000 and Internet Explorer 5.5 (I have not yet tried it with IE 6.0). The article includes the source code for the component and samples that include demonstrating its use in Internet Explorer.

Note: when you download the code, make sure that you compile it on your system since the C++ project I include in the sample relies on ATL. I also include ATL.dll in the download - just in case you don't have it on your system (it is from VC 6.0 - no service packs).

Here's the link to the article (Exposing an STL container Through COM Using ATL):

http://www.designs2solutions.com/articles/dev/atlcollection/atlcollection-1.asp?cp=1&tp=8&pfx=atlcollection&dl=atlcollection.zip

The article also appears here on CodeGuru; however, the formatting makes the article difficult to read. If you cannot access the above URL, visit http://www.designs2solutions.com and click on the Articles link near the top of the screen and locate the article from there.


Essam Ahmed
___________________________________________________
Author of JScript .NET Programming - Now Avaialble!
http://www.designs2solutions.com/jsnetprg

See how easy it is to:
o migrate from ASP to ASP .NET
o create a Web Service
o consume a Web Service from a Windows Forms app
o work with ADO .NET
o work with ADO in an ASP .NET application
o migrate from ADO to ADO .NET
o ...and more!



o Accepting subscriptions for a newsletter on the .NET Framework and JScript .NET - Subscribe Today!

http://www.designs2solutions.com/jsnetprg

Manish Malik
November 13th, 2001, 10:00 AM
Quoting... "The article also appears here on CodeGuru; however, the formatting makes the article difficult to read."

Thanks for bringing that to notice. :-) You might want to inform Brad Jones about that, he'll try to rectify any formatting problems.


Manish
http://www.manishmalik.com