2010-12-30, 06:44 PM
"a native type cannot be nested within a managed type 'MineSweeper::Form1'" tells me that it's compiling your code as C++/CLI, not C++. Are you intending to use C++/CLI instead of actual unmanaged C++? If you mean to use real unmanaged C++ instead of managed (.NET) C++/CLI, set the /clr compiler option to "No common language runtime support". That may mean you don't get to use a form designer.

