Thursday, July 5, 2012

Index » » Microsoft Windows Visual C++ and Microsoft Foundation Class (MFC)

Microsoft Windows Visual C++ and Microsoft Foundation Class (MFC)

A separate text-format workspace file (with a DSW extension) has an entry for each project in the workspace. It’s possible to have multiple projects in a workspace, but all the examples in this Tutorial have just one project per workspace. To work on an existing project, you tell Visual C++ to open the DSW file and then you can edit and build the project. The project directory also can be copied to other directory or system and can be edited, built and run as usual. The Resource Editors: Workspace ResourceView When you click on the ResourceView tab in the Visual C++ Workspace window as shown below, you can select a resource for editing by double clicking the resource such as the About dialog box shown below. Figure 4: Visual C++ ResourceView. The main window hosts a resource editor appropriate for the resource type. The window can also host a WYSIWYG editor for menus and a powerful graphical editor for dialog boxes, and it includes tools for editing icons, bitmaps, and strings.

The dialog editor allows you to insert ActiveX controls in addition to standard Windows controls and the new Windows common controls which have been further extended in Visual C++ 6.0. Each project usually has one textformat resource script (RC) file that describes the project’s menu, dialog, string, and accelerator resources. The RC file also has #include statements to bring in resources from other subdirectories. These resources include project-specific items, such as bitmap (BMP) and icon (ICO) files, and resources common to all Visual C++ programs, such as error message strings. The resource editors can also process EXE and DLL files, so you can use the clipboard to “steal” resources, such as bitmaps and icons, from other Windows applications. The C/C++ Compiler The Visual C++ compiler can process both C source code and C++ source code. It determines the language by looking at the source code’s filename extension. A C extension indicates C source code, and CPP or CXX indicates C++ source code. The compiler is compliant with all ANSI standards, including the latest recommendations of a working group on C++ libraries, and has additional Microsoft extensions.

download Microsoft Windows Visual C++ and Microsoft Foundation Class (MFC) here