Creating the Windows Form
The first step in writing a Windows Form application is to include the appropriate .NET Framework components that support the Windows Forms. Add the following lines to the SimpleWindowsForm.cpp file after the #using <mscrolib.dll> statement:
#using <System.DLL> #using <System.Drawing.DLL> #using <System.Windows.Forms.DLL> using namespace System; using namespace System::Drawing; using namespace System::Windows::Forms;
As was mentioned earlier, these statements import the portions of the .NET Framework needed and also indicate which namespaces you will use when declaring the Windows Form class. System.DLL is a component that includes all the system-level .NET Framework classes. System.Drawing.DLL is a component that ...
Get Sams Teach Yourself Visual C++® .NET in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.