473,588 Members | 2,565 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I write a activeX that support socket communication in web page?

Hi,

If I can write a ActiveX component that can support socket
communication in webpage, that will make browser have strongger
capability to communicate with different clients, but not only can
exchange info with the web server.

I don't familarize with C# programming and here I just want to
know is that possible to implemented?

Any comments are welcome.
Thanks

Wade

Aug 2 '07 #1
13 2714
Sure it's possible but it doesn't make any sense. What you want to do is
create a client that uses the browser to create another connection that can
communicate with the server. That kind of programming only makes sense in
file upload scenarios - and that is a stretch.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"Wade Yin" <Wa*******@gmai l.comwrote in message
news:11******** *************@j 4g2000prf.googl egroups.com...
Hi,

If I can write a ActiveX component that can support socket
communication in webpage, that will make browser have strongger
capability to communicate with different clients, but not only can
exchange info with the web server.

I don't familarize with C# programming and here I just want to
know is that possible to implemented?

Any comments are welcome.
Thanks

Wade

Aug 2 '07 #2

Another option is to create an application for the Adobe Flash Player.
There are several development options but the best is Adobe Flex.

http://www.adobe.com/products/flex/

You can write a widget in Flex to do the necessary UI parts and
communications or you call also hook it up with Javascript to have
Flex to just the socket communications.

Also for communicating with .NET the Fluorine library provides very
good object serialization support.

http://fluorine.thesilentgroup.com/fluorine/index.html

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Thu, 02 Aug 2007 10:20:53 -0000, Wade Yin <Wa*******@gmai l.com>
wrote:
>Hi,

If I can write a ActiveX component that can support socket
communicatio n in webpage, that will make browser have strongger
capability to communicate with different clients, but not only can
exchange info with the web server.

I don't familarize with C# programming and here I just want to
know is that possible to implemented?

Any comments are welcome.
Thanks

Wade
Aug 2 '07 #3
Wade,

Creating ActiveX components is not supported outright in .NET. There
are ways to do it, but quite frankly, they are hacks, and I wouldn't rely on
them.

You can always embed the .NET control into IE. The following link shows
how to do so:

http://windowsclient.net/articles/iesourcing.aspx

There are security considerations as well which you have to address when
working with a .NET control, which the article points out.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Wade Yin" <Wa*******@gmai l.comwrote in message
news:11******** *************@j 4g2000prf.googl egroups.com...
Hi,

If I can write a ActiveX component that can support socket
communication in webpage, that will make browser have strongger
capability to communicate with different clients, but not only can
exchange info with the web server.

I don't familarize with C# programming and here I just want to
know is that possible to implemented?

Any comments are welcome.
Thanks

Wade
Aug 2 '07 #4

This extra connection type of programming makes sense in a lot of
scenarios and is common in Flash applications--it's been possible
since at least Flash 5 (we're in Flash 9 now).

Games can use the extra socket connection to send real-time data back
and forth so you can write multiplayer games on the web (most only
games are written in Flash).

Business applications can use extra socket connections for pushing
data from client to server. In our own applications we use standard
HTTP for the client to send commands to the server but have an extra
socket connection for status messages. We also can use it to manage
concurrent actions--two clients log in to work on the same thing, we
can let them collaborate easily. Adobe Connect is another example
where many users can log in and listen to a presentation online. It
provides full screen sharing and chat and stuff within a Flash
application (clients only need the Flash player to view Adobe Connect
content).

Some general purpose apps can also benefit from an open socket.
Digg.com uses a type of pull-wait scenario to fake pushing data to the
client. A real open socket would be far easier to program.

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Thu, 2 Aug 2007 08:52:38 -0400, "Alvin Bruney [MVP]" <some guy
without an email addresswrote:
>Sure it's possible but it doesn't make any sense. What you want to do is
create a client that uses the browser to create another connection that can
communicate with the server. That kind of programming only makes sense in
file upload scenarios - and that is a stretch.
Aug 3 '07 #5
That's precisely the point, these applications aren't at all suited for the
browser since they extend past browser functionality. In any case, the way
forward for that sort of thing is managed user controls. Creating the
embedded control can follow a pattern similar to what is described here:
(http://support.microso ft.com/kb/555685).You'll need to be aware of
permissions issues surrounding CAS. Cas for managed user controls is here
(http://support.microsoft.com/kb/555688).

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"Samuel R. Neff" <sa********@nom ail.comwrote in message
news:8k******** *************** *********@4ax.c om...
>
This extra connection type of programming makes sense in a lot of
scenarios and is common in Flash applications--it's been possible
since at least Flash 5 (we're in Flash 9 now).

Games can use the extra socket connection to send real-time data back
and forth so you can write multiplayer games on the web (most only
games are written in Flash).

Business applications can use extra socket connections for pushing
data from client to server. In our own applications we use standard
HTTP for the client to send commands to the server but have an extra
socket connection for status messages. We also can use it to manage
concurrent actions--two clients log in to work on the same thing, we
can let them collaborate easily. Adobe Connect is another example
where many users can log in and listen to a presentation online. It
provides full screen sharing and chat and stuff within a Flash
application (clients only need the Flash player to view Adobe Connect
content).

Some general purpose apps can also benefit from an open socket.
Digg.com uses a type of pull-wait scenario to fake pushing data to the
client. A real open socket would be far easier to program.

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Thu, 2 Aug 2007 08:52:38 -0400, "Alvin Bruney [MVP]" <some guy
without an email addresswrote:
>>Sure it's possible but it doesn't make any sense. What you want to do is
create a client that uses the browser to create another connection that
can
communicate with the server. That kind of programming only makes sense in
file upload scenarios - and that is a stretch.

Aug 3 '07 #6

I think the relm of "aren't at all suited for the browser" is quite a
bit smaller than it used to be.

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Fri, 3 Aug 2007 17:13:32 -0400, "Alvin Bruney [MVP]" <some guy
without an email addresswrote:
>That's precisely the point, these applications aren't at all suited for the
browser since they extend past browser functionality. In any case, the way
forward for that sort of thing is managed user controls. Creating the
embedded control can follow a pattern similar to what is described here:
(http://support.microso ft.com/kb/555685).You'll need to be aware of
permissions issues surrounding CAS. Cas for managed user controls is here
(http://support.microsoft.com/kb/555688).
Aug 3 '07 #7
I guess you are right on that.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"Samuel R. Neff" <sa********@nom ail.comwrote in message
news:e8******** *************** *********@4ax.c om...
>
I think the relm of "aren't at all suited for the browser" is quite a
bit smaller than it used to be.

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Fri, 3 Aug 2007 17:13:32 -0400, "Alvin Bruney [MVP]" <some guy
without an email addresswrote:
>>That's precisely the point, these applications aren't at all suited for
the
browser since they extend past browser functionality. In any case, the way
forward for that sort of thing is managed user controls. Creating the
embedded control can follow a pattern similar to what is described here:
(http://support.microso ft.com/kb/555685).You'll need to be aware of
permissions issues surrounding CAS. Cas for managed user controls is here
(http://support.microsoft.com/kb/555688).

Aug 3 '07 #8

You can image when visiting some website, it can provide you various
activex contorl. Trhough some of them you can communicate with your
online friends (embeded in the opened web page), at the same time you
can use other Activex component to play some small online games. And
more applets that need the socket communcation can be build to do more
task in the webpage, so we don't need always install so much different
clinet software, just maintain the IE Plugin should be enough... Is
that interesting?

On Aug 2, 8:52 pm, "Alvin Bruney [MVP]" <some guy without an email
addresswrote:
Sure it's possible but it doesn't make any sense. What you want to do is
create a client that uses the browser to create another connection that can
communicate with the server. That kind of programming only makes sense in
file upload scenarios - and that is a stretch.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Bookwww.lulu.co m/owc
Professional VSTO 2005 - Wrox/Wiley

"WadeYin" <Wade.Y...@gmai l.comwrote in message

news:11******** *************@j 4g2000prf.googl egroups.com...
Hi,
If I can write a ActiveX component that can support socket
communication in webpage, that will make browser have strongger
capability to communicate with different clients, but not only can
exchange info with the web server.
I don't familarize with C# programming and here I just want to
know is that possible to implemented?
Any comments are welcome.
Thanks
Wade

Aug 4 '07 #9
Thanks, Sam! Yes that would be another way to implement the
requirement.
But I have to study a new develop tool, but I'm lazy :)

On Aug 2, 9:03 pm, Samuel R. Neff <samueln...@nom ail.comwrote:
Another option is to create an application for the Adobe Flash Player.
There are several development options but the best is Adobe Flex.

http://www.adobe.com/products/flex/

You can write a widget in Flex to do the necessary UI parts and
communications or you call also hook it up with Javascript to have
Flex to just the socket communications.

Also for communicating with .NET the Fluorine library provides very
good object serialization support.

http://fluorine.thesilentgroup.com/fluorine/index.html

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Thu, 02 Aug 2007 10:20:53 -0000,WadeYin <Wade.Y...@gmai l.com>
wrote:
Hi,
If I can write a ActiveX component that can support socket
communication in webpage, that will make browser have strongger
capability to communicate with different clients, but not only can
exchange info with the web server.
I don't familarize with C# programming and here I just want to
know is that possible to implemented?
Any comments are welcome.
Thanks
Wade


Aug 4 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3026
by: mjcast | last post by:
I have been working on an ActiveX control in C#. It is packaged in a Windows Control library and the code is in a user control. The control is used as an automation receiver that is used to update a page dynamically through the use of event listeners in javascript That works, the problem is that when I run the test webpage that runs the ActiveX control, the socket does not start listening for about a minute and a half, after which it runs fine....
4
2259
by: faktujaa | last post by:
Hi, I am having some problem with callback used in socket implementation. private static void Connect(string strPrtrIPAddr, int intPrtrPort, ref Socket rsocClient) { try { // Create remote end point. System.Net.IPAddress IPAddress = System.Net.IPAddress.Parse(strPrtrIPAddr); System.Net.IPEndPoint IPEndPoint = new System.Net.IPEndPoint(IPAddress,
2
5308
by: Berata | last post by:
Hello all, in VB6 we were able to create ActiveX-DLL's (In Process Components) and ActiveX-Exe's (Out of Process Components). We habe build up an application that exists of an main module (Standard Exe) that calls and controls other modules (ActiveX-Exe). We decided for ActiveX-Exe because they run in different processes. That means if one module shuts down, the others are still alive. Second reasons
1
1549
by: news.scarlet.be | last post by:
Hi there, From a VB.NET application, a VB6 ActiveX DLL needs to be used. This ActiveX.DLL (source not available) has an Announce() method which opens a socket to a given server for communication purposes. Problem is the Announce() method does not work from VB.NET - nothing happens (I can monitor incoming connections server-side but no connection is established). There is no exception neither. The same ActiveX.DLL works flawlessly and...
1
2287
by: Bryan | last post by:
I have created an MFC ActiveX control. If I connect to my local machine on some port, everything works fine. If I try to connect to a different computer, I get an error (from CSocket.Create) that says "The requested address is not valid in its context." I know for a fact that the address is valid because I can have one of my Java Programs connect just fine... Is there just something about using an ActiveX control to create a socket...
4
2340
by: Sa¹o Zagoranski | last post by:
Hi! I'm writing a simple 3D First person shooter game. It is a multiplayer game, where all the players connect to one server.
6
2440
by: Andre Azevedo | last post by:
Hi all, I need to receive and connect using X25 protocol in .Net Framework 2.0 and I'm trying to find the correct address and protocol enumeration in System.Net.Sockets but with no success. Is there a way to do it? Or I need some 3rd party libraries. Any help will be apreciated. TIA,
0
2587
by: =?Utf-8?B?QWxwZXIgQUtDQVlPWg==?= | last post by:
Hello, First of all I wish you a good day. My help request is about .NET asynchrounus socket communication. I have developed Server-Client Windows Forms .NET applications in VC++ .NET v2003. I have several problems re-establishin connection between peers. Below are my problem cases after closing of the first successfull communication; #1) I re-start the Server to accept connection requests. While it is waiting, I run the Client. It is...
0
1766
by: Mangabasi | last post by:
Howdy, I would like to use the Synthesis Toolkit for a demo. I downloaded the STK from http://ccrma.stanford.edu/software/stk/index.html. It seems very powerful and user friendly. There are bindings for socket connections and TCL gui examples. I would like to get one of the demo samples work with Python/wxPython. I am including the TCL code for the drums demo (this was the shortest one). Has anybody converted this to wxPython? ...
0
7929
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7860
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8354
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6634
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5726
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5398
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3847
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3883
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2371
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.