Log in

ActiveX and C# --- help? - brad's life [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

ActiveX and C# --- help? [May. 18th, 2004|01:47 pm]
Brad Fitzpatrick
Unix guy needs help....

How do I write an ActiveX(?) control using C#?

Basically I want what I know as a Java applet to work in MSIE, without the user needing to install anything.

I know C#. I have the .NET SDK in Win2k (under vmware) and I have Mono. I don't want to buy Visual Studio.


[User Picture]From: mart
2004-05-18 04:41 pm (UTC)

A Java applet can do this, right? I've not played much with applets, but my understanding is that they can attempt socket connections back to the server which served the applet under the standard security rules. The sockets stuff has been in Java forever, and if you stick to AWT it'll work basically everywhere. .NET on the other hand will only work in IE for people who have explicitly installed the .NET runtime.

I have the .NET framework SDK installed but I don't use IE, so this would be useless to me. I also know several Windows XP users who aren't computer people who don't have .NET installed. It seems that most people who would have .NET installed are sensible enough to realise that IE is junk and people who don't will usually not have the .NET runtimes installed. That might be a gross over-generalisation but I'm sure it holds true in a lot of cases. That's before you even consider Mac users!

The choice seems obvious to me.

(Reply) (Parent) (Thread)
[User Picture]From: mge
2004-05-18 05:00 pm (UTC)

You can talk back to the server

But I don't think you're alowed to break out of the sandbox and access local files under the defaults. Atleast not without some serious prompting of the user.
(Reply) (Parent) (Thread)
[User Picture]From: iamo
2004-05-18 09:51 pm (UTC)

Re: You can talk back to the server

I'm pretty sure the same is true of .net assemblies loaded from web pages.
(Reply) (Parent) (Thread)
[User Picture]From: brad
2004-05-18 10:35 pm (UTC)

Re: You can talk back to the server

I'm thinking of those dialogs that come up and say "You want to let this program take over your computer? If you don't click yes, you won't be able to play this fun game."
(Reply) (Parent) (Thread)
[User Picture]From: brad
2004-05-18 05:31 pm (UTC)
Ignoring the local file access problem that mge pointed out, most Windows users nowadays don't even have Java installed.

But I agree Java is the right thing to do for Mac users.

Java on Linux sucks (at least on Debian) because it's non-Free.

Really, everything sucks. I can't wait for a shift to standardized fat clients.
(Reply) (Parent) (Thread)