Hi,
today I fixed a couple of mcs bugs which causes it to reject the invalid code in
System.Windows.Forms. When trying to build it with the latest mcs, you'll get
====
System.Windows.Forms/NativeWindow.cs(69) error CS0117: `System.Windows.Forms.Win32'
does not contain a definition for `WNDCLASS'
System.Windows.Forms/NativeWindow.cs(193) error CS0117: `System.Windows.Forms.Win32'
does not contain a definition for `WM_CREATE'
System.Windows.Forms/NativeWindow.cs(222) error CS0117: `System.Windows.Forms.Win32'
does not contain a definition for `WM_CREATE'
System.Windows.Forms/NativeWindow.cs(226) error CS0117: `System.Windows.Forms.Win32'
does not contain a definition for `WM_CREATE'
System.Windows.Forms/Menu.cs(157) error CS0029: Cannot convert implicitly from `int'
to `uint'
System.Windows.Forms/Menu.cs(159) error CS0122: `MenuID' is inaccessible because of
its protection level
Compilation failed: 6 error(s), 0 warnings
====
For the moment, either use an older mcs to compile it or wait until the code in
System.Windows.Forms has been fixed.
On Windows, I get the same errors, so it's not a mcs bug:
====
$ NAnt
Buildfile:
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms.build
build:
[csc] Compiling 341 files to
\\townsville\martin\monocvs\mcs\class\lib\System.Windows.Forms.dll
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\CheckedListBox.cs(469,16):
warning CS0108: The keyword new is required on
'System.Windows.Forms.CheckedListBox.ObjectCollection' because it hides inherited
member 'System.Windows.Forms.ListBox.ObjectCollection'
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\ListBox.cs(574,16):
(Location of symbol related to previous warning)
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(69,11):
error CS0234: The type or namespace name 'WNDCLASS' does not exist in the class or
namespace 'System.Windows.Forms.Win32' (are you missing an assembly reference?)
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(71,5):
error CS0246: The type or namespace name 'wndClass' could not be found (are you
missing a using directive or an assembly reference?)
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(74,5):
error CS0246: The type or namespace name 'wndClass' could not be found (are you
missing a using directive or an assembly reference?)
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(75,5):
error CS0246: The type or namespace name 'wndClass' could not be found (are you
missing a using directive or an assembly reference?)
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(76,5):
error CS0246: The type or namespace name 'wndClass' could not be found (are you
missing a using directive or an assembly reference?)
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(77,5):
error CS0246: The type or namespace name 'wndClass' could not be found (are you
missing a using directive or an assembly reference?)
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(78,5):
error CS0246: The type or namespace name 'wndClass' could not be found (are you
missing a using directive or an assembly reference?)
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(79,5):
error CS0246: The type or namespace name 'wndClass' could not be found (are you
missing a using directive or an assembly reference?)
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(80,5):
error CS0246: The type or namespace name 'wndClass' could not be found (are you
missing a using directive or an assembly reference?)
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(81,5):
error CS0246: The type or namespace name 'wndClass' could not be found (are you
missing a using directive or an assembly reference?)
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(82,5):
error CS0246: The type or namespace name 'wndClass' could not be found (are you
missing a using directive or an assembly reference?)
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(84,30):
error CS0103: The
name 'wndClass' does not exist in the class or namespace
'System.Windows.Forms.NativeWindow'
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(193,17):
error CS0117: 'System.Windows.Forms.Win32' does not contain a definition for
'WM_CREATE'
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(222,15):
error CS0117: 'System.Windows.Forms.Win32' does not contain a definition for
'WM_CREATE'
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\NativeWindow.cs(226,15):
error CS0117: 'System.Windows.Forms.Win32' does not contain a definition for
'WM_CREATE'
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\Menu.cs(157,18):
error CS0029: Cannot implicitly convert type 'int' to 'uint'
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms\Menu.cs(159,18):
error CS0122: 'System.Windows.Forms.MenuItem.MenuID' is inaccessible due to its
protection level
BUILD FAILED
\\townsville\martin\monocvs\mcs\class\System.Windows.Forms\System.Windows.Forms.build:-1:
Program error, see build log for details.
Program error, see build log for details.
Try `NAnt -help' for more information.
=====
--
Martin Baulig
[EMAIL PROTECTED]
_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list