.net for Win95?

During some research in .net 3.5 characters, I found a preprocessor directive

#if WIN95_SUPPORT //... #endif 

It looks weird to me! It is located on line 13861 in System.Windows.Forms.Control Control.cs in the void WndProc (ref Message m) method!

Do any of you know about this?

+6
winapi
source share
3 answers

Given that .NET 1.0 beta versions ( http://en.wikipedia.org/wiki/.NET_Framework_version_list ) were released before Microsoft finished supporting Windows 95 (December 31, 2001), I think it’s safe to assume that the developers were not sure, to some point, if they were to support Windows 95 or not.

+6
source share

This probably remains from previous versions of the framework that were supported in Windows 95 (since it would be useful to use the previous code base).

+6
source share

When .NET 1.0 came out, it was originally supported on Windows 98 SE. Therefore, I assume that given the assembly in which you found it, it was originally available for switching between Win9x Win Forms and WinNT (2000, XP, Vista, etc.) Win Forms.

Since Win9x and WinNT used different messaging protocols. If you are new to Windows Messaging, this is a way for Win Forms to interact with the OS for things like drawing, keyboard events, mouse events, and everything else.

+3
source share

All Articles