Ottimo tutorial di visual C++ composto da ben 27 argomenti
If statements, and some boolean information
All you want to know about Loops
Functions…all about them, making and using the critters
About the switch case structure
Using pointers to access memory locations
Structures, all about ‘em, and how to use ‘em
All about arrays
About character arrays (strings)
About file i/o
Typecasting: making variables look like another data-type
More information on functions(non-prototyed and inline)
How to accept command line arguments (AND checking file existence)
Recursion–a function calling itself
Functions accepting a variable number of arguments
MFC, Round Windows and Highlight Buttons. By Alex Rest.
This tutorial will introduce you to the C++ programming in Windows environment.
A Button is a Windows control used to initiate an action. From the userâs standpoint, a button is useful when clicked, in which case the user positions the mouse on it and presses one of the mouseâs buttons. There are various kinds of buttons. The most common and regularly used is a rectangular object that the user can easily recognize. In some programming environments, this classic type is called a Command Button. There are other controls that can serve as click controls and initiate the same behavior as if a button were clicked. From the programmerâs standpoint, a button needs a host, such as a dialog box. To add a button to a dialog box, click it on the Toolbox and click in the desired location on the dialog box. By default, when you visually create a dialog box, Microsoft Visual C++ adds two buttons: OK and Cancel
A check box is a Windows control that allows the user to set or change the value of an item as true or false. The control appears as a small square o. When this empty square is clicked, it gets marked by a check symbol S. These two states control the check box as checked o or unchecked T. Like the radio button, the check box doesn’t indicate what it is used for. Therefore, it is usually accompanied by a label that displays an explicit and useful string. The label can be positioned on either part of the square box, depending on the programmer who implemented it. Unlike the radio buttons that implement a mutual-exclusive choice, a check box can appear by itself or in a group. When a check box appears in a group with other similar controls, it assumes a completely independent behavior and it must be implemented as its own entity. This means that clicking a check box has no influence on the other controls.
A combo box is a Windows control that holds a list of items. Each item can be a null-terminated string or it can be made of a bitmap and a string. A combo box shares a lot of characteristics with a list but there are more variances of a combo box. As far as looks are concerned, there are two types of combo boxes. The most regularly used combo box is made of two sections. The main part is an edit box. On the right of the edit box, there is a button with a down pointing arrow.
A dialog box is a rectangular window whose main role is to host or hold other Windows controls. For this reason, a dialog box is referred to as a container. It is the primary interface of user interaction with the computer. By itself, a dialog box means nothing. The controls it hosts accomplish the role of dialog between the user and the machine.
A form is an object used to host, hold, or carry other controls. By itself, a form means nothing. The controls positioned on it give it usefulness. In the Microsoft Foundation Classes library, a form is a type of dialog box without borders. The rest of the functionality is mostly the same as a dialog box. While a dialog box is usually closed using either the system Close button or a user-created button positioned on it, such as OK or Cancel, because a form is part of a bigger application, it should use another means to be closed. In fact, the application to which the form belongs should define when and how the form would be closed.
Product information, technical resources, samples and downloads, news and reviews.
This tutorial shows how to use UNICODE in VC++ applications to handle international character sets.
“A Visual C++ Program to Create and Show a Frame Window with Menu using MFC Library..Author:Muhammad Tahir Shahzad URL www.wol.net.pk/mtshome”