Because I recently wanted to write a program similar to Remote Desktop monitoring, screen capture is used in this program. To achieve the program's part of the function, made a small demo. The program is very simple, the technology used is not much,
A callback function
We often use the callback function in C + + design to make some applications (such as timer event callback processing, using callback function to record the progress of an operation, etc.) become very convenient and logical,
1. Implicit local variables
C # 3.0 introduces a new keyword called "var". This keyword allows the developer to create a variable, but does not have to be explicit about its type. For example, use Var to describe a string, like this:
var myData = "
In order to facilitate the development of the article, first introduced the boxing (Boxing) and unpacking (unboxing) these two nouns. NET type is divided into two types, one is the value type and the other is the reference type. The essential
User input can be varied: you must validate input as much as possible in an interactive control. Writing some user input validation may be contrived, and there may be errors, but it is still necessary. You cannot trust the user's input too much, the
As we mentioned in the previous article, references are actually an alias for an object. We know that objects are materialized instances of types, so can types have aliases? The answer is yes.
#include using namespace std; class human{ public:
section III defines interface members
an interface can contain one and more members, which can be methods, properties, index indicators, and events, but not constants, fields, operators, constructors, or destructors, and cannot contain any static
Specification | interface
An interface defines a contract. A class or struct that implements an interface must comply with its contract. Interfaces can contain methods, properties, indexers, and events as members.
Example
Interface Iexample{String
window| Monitoring
This article will show you how to use C # to develop a Windows service to record system usage.Everyone wants to know what time they start and shut down their systems every day, and how much time the system runs every day. It
web| to create Microsoft. A more important part of the net strategy is webservice, with WebService we can create truly efficient distributed applications.
Below, we do some explaining to webservice.
Assuming that a is the client, B is the WebService
Asynchronous
Asynchronous programming is a feature supported by many areas of the common language runtime, such as remoting, ASP.net, and Windows forms. Asynchronous programming is the core concept in the. NET Framework. Use. NET asynchronous
Inheritance | difference
Using System;Using System.Collections;
public class Nevermore60customer:customer{public override string Getfunnystring (){return "nevermore60.nevenmore!";}
--------------------------------------------------------------------
In the three basic structures of the program, the second is the choice of structure, its basic characteristics are: The process of the program is composed of multiple branches, in the process of executing a program, according to different
Terminates the executable (EXE) program, first traversing the process, finding the process ID number for the process name, and then terminating the process based on the process ID.
Sample code: Includes traversing the process code, and closing the
Better code optimizationA good software developer will always find ways to improve the efficiency of software execution, compiler writers are a special type of developers, not only the code to execute high efficiency, and the code generated by them
There is a critical keyword in net, which is the using
Using generally has the following uses:
1. Direct introduction of namespaces
A, using System, this is the most commonly used, is the using+ namespace, so you can directly use the type in the
Use. NET to write WinForm program, the more common one is how to achieve data interaction between forms, the following is a simple summary of several common ways of data interaction:
1, modify the constructor of the subform:
Simply put, by
The. NET Framework provides two design patterns for asynchronous operations: asynchronous operations that use IAsyncResult objects and asynchronous operations that use events. First, learn the former.
Overview
IAsyncResult Asynchronous design mode
Java enthusiasts often criticize C + + does not provide similar to Java garbage collection (Gabage Collector) mechanism (this is normal, as the C + + enthusiasts sometimes attack Java without this, or this does not good enough), resulting in C + +
Recently in writing a program to use more than a thread, so the CB under the multithreading have a certain degree of learning.
Now tell me some of your own experiences. The level is limited, write very rough, please forgive me.
CB relative to VC,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service