views:

1111

answers:

6

I need to write a little tool for a customer to be run on Windows 98. Since this is a very small project I'd hope that I could avoid having to go native C++ and use C#.

The .net Framework 2.0 download claims to support Windows 98. Are there any caveats or hitches to be aware of when installing or coding?

A: 

Isn't the .net a virtual machine like Java .. so if you can run (and install) it natively under Win98, you shall not have any issues.

mana
.NET is a virtual machine runtime, but you can't just install it on any arbitrary OS. Windows 98 is only supported by the .NET Framework 2.0 (or earlier), any other versions will not install.
Scott Dorman
+1  A: 

.NET 2.0 supports Windows 98, but you won't have access to some of the base library classes such as EventLog.

Nicholas
+6  A: 

There are a few features that Win98 won't support such as form opacity and balloon tooltips. If you use any P/Invoke, you'll have to make sure to support ANSI versions of functions (use CharSet.Auto) and you'll have to check MSDN to make sure that the API functions you're using are supported on Win98. It will work, but if possible, you should test on Win98 before delivering to the customer.

P Daddy
+3  A: 

It is usable, but be sure to read the documentation for the classes that you end up using. Some of them are not supported on Win98, like the EventLog mentioned by Nick Baldwin.

Also, it may not be a trivial installation (at least in my experience). If I were you I would have checked to see if the client is able to install .NET 2.0 before starting the project.

Eyvind
+2  A: 

I've written several "small tools" that I have personally run on Win98. What I would suggest is that you create a VM and test out your app after every significant build.

The issues I saw was almost completely UI related (things really didn't size correctly).

Timothy Khouri
+1  A: 

You can target .NET 2.0 with the express editions too. In C# express you can change the framework in the project properties. You must save the project first.

ggf31416