Building a Managed .NET Framework Application (1)

November 29, 2009

Switching gears to the .NET Framework and building the same type of application as a managed C++ application is a bit different, as you will see. The first step is the same: Select to build a new project from the main menu, only this time select Managed C++ Application as the type and name the [...]

0

Building an MFC Application (3)

November 26, 2009

Assign a member variable to the static text control by right-clicking the control and selecting Add Variable from the context menu. The Add Member Variable Wizard, shown in Figure 3.5, is displayed. Edit the member variable properties, as shown, and finish the wizard.
One final step in the dialog editor is to double-click the Message button [...]

0

Building an MFC Application (2)

November 23, 2009

Select the Application Type section in the wizard and change the settings to match those shown in Figure 3.3. These selections will result in creating a dialog-based application when you click the Finish button.
The first thing you will see after dismissing the settings dialog is the dialog editor. If your dialog requires any controls, you [...]

0

Building an MFC Application (1)

November 20, 2009

Building an MFC application with Visual Studio .NET is very similar to the way it was done with previous versions of Visual Studio. The Application Wizard is available to allow you to customize your settings, although it has a different look.
As usual with Visual Studio, first select the New, Project menu option to display the [...]

0

Hour 3. Writing a Simple C++ .NET Program

November 17, 2009

Inevitably every programming book and programming course has you create as your first application—a simple “Hello World” program. Therefore, this hour’s lesson is dedicated to writing your first simple application with Visual C++ .NET.
The difference is, this lesson already assumes you know how to create a simple application and are at least somewhat experienced with [...]

0

Workshop

November 14, 2009

The Workshop provides quiz questions to help solidify your understanding of what was covered in this hour. Answers are provided in Appendix A, “Quiz Answers.”
Quiz
1: What is the keyword to declare a class as managed?
2: Attributes work similarly to what other feature in C++?
3: What compiler directive is required to produce an application for the [...]

0

Q&A

November 11, 2009

Where do I get all the information on the new language features and the compiler and linker directives not required for .NET development?
A1: Microsoft provides a complete list of the new compiler directives in its online help that ships with Visual Studio .NET. Search for “What’s New” in the online help to bring up [...]

0

Summary

November 8, 2009

This hour you learned about the new special features in Visual C++ .NET that allow it to create managed code for the .NET Framework. Other new features have been added to the language, compiler, and linker to provide enhancements and support for 64-bit Windows development. However, they are not required for .NET development.
As you read [...]

0

Pragmas, Compiler, and Linker Features (6)

November 5, 2009

Using New Linker Options
The new linker options allow you to customize the linking of your managed .NET Framework modules. The first, /NOASSEMBLY, produces a module that is not an assembly by itself, but can be added to an assembly. This option is redundant with the /clr:noassembly directive described earlier and has the same effect.
The /ASSEMBLYMODULE:filename [...]

0

Pragmas, Compiler, and Linker Features (5)

November 2, 2009

The /clr option tells the compiler to compile the code for the common language runtime (CLR). All code within the project defaults to managed code unless you specify otherwise with the pragma described earlier.
The /clr option also has an optional :noassembly directive that specifies that the assembly manifest that describes the assembly should not be [...]

0