SOCKET class design and implementation

  Basic WinSock knowledge We do not plan to introduce it systematically here.Knowledge about socket or WinSock. First, we will introduce the WinSock API function, introduce the concept of blocking/non-blocking, and then introduce the use of

Change the display mode directly in the program

    You can access the system registry HKEY_CURRENT_CONFIGDISPLAYSETINGS to learn when The front display resolution and the number of colors. However, the following methods are commonly used: Key API functions are EnumDisplaySettings and

Add a smart horizontal scroll bar to CListBox

     InIn MFC, It is very convenient to use a list box (CListBox) to display multiple strings. But Missing The horizontal scroll bar of the provincial list box is not smart enough-the meaning of intelligence here is: when it should appear Now, it

DDX and RFX should be used in ODBC

  ODBC library Introduction In MFC ---- In MFC, there are five basic types of ODBC data library programming. These classes ClosedOdbc api calling, enabling users to make full use of ODBC Class data database compilationSuch as Foxpro, dBASE, or

Web-based program version check

  Many programs can Update versions over the Internet. Windows Update is a typical example. To implement this feature, you must first check the application version. How can I check the version of my program on the Internet?However, if you only want

Use MFC to write FTP programs

    1. Generate the CInternetSession variable.   CInternetSession ses;   2. Open the FTP connection.   CFtpConnection * pFTP = ses. GetFtpConnection ("ftp.microsoft.com", "user", "password", port, FALSE );   3. open the file.  

How to change the color of a widget

    There are two methods. First, you can specify the color of the control in the parent class, or useMFC4.0 new message Reflection specifies the color in the control class. When the control needs to be re-colored, the Work box calls the parent

Windows Sockets: streaming socket

This article describes streaming Sockets, one of the two available Windows Sockets types. (Another type is the data PACKET socket .) Stream sockets provide data streams without record boundaries: they can be two-way byte streams (applications are

Windows Sockets: Convert strings

This article and two other related articles explain some issues in Windows Sockets programming. This document describes how to convert strings. Other problems are described in Windows Sockets: blocking and Windows Sockets: byte sorting. If you use

C-Sharp calls standard dynamic library

Here we are talking about the issue of C # Calling standard dynamic libraries. I have mentioned in my previous files that C # uses the same principle to call Win32API. here I will explain in detail how to use C to write a standard dynamic library

Windows programming common Win32 types and common structures

CALLBACK replaces far pascal in the CALLBACK routine of the applicationHANDLE is a 32-bit unsigned integer used as a HANDLE.HDC device description handleHWND a 32-bit unsigned integer used as a window handleLONG a 32-bit signed integerLPARAM is used

Use GDI + to implement a special window with a translucent gradient

By accident, the sweet pomegranate brother gave me something that was written by BlueCrab using VC and realized the special effect of translucent gradient window using the GDI + technology. It looks very good. I would like to express my deep

Summary of several common functions of C language strings

String processing functions 1. Write formatted data into a string: sprintf Int sprintf (char * buffer, const char * format ,...); Print data to buffer Example: char result [100]; Int num = 24; Sprintf (result, "% d", num ); Example: char string [50];

Code for implementing the full screen function of MFC

Many players have shortcut key control windows displayed in full screen mode. Adding the full screen function to an application does not require a lot of code. For example, adding the full screen function to a dialog box-based application requires

C Programming of linux daemon

By using the code downloaded from the internet, the daemon process is successfully implemented. The original daemon process is very simple. Execute in main Function Init_daemon (); // initialize to Daemon You can turn the process into a daemon

C language Introduction

C language is the most popular and widely used high-level programming language in the world.C language is better than other advanced languages for operating systems and system programs and hardware operations. Many large applications are written in

The usage of static and extern in C

I. static and extern:In large projects, we will encounter many source files.File a. cStatic int I; // only used in fileInt j; // used in the projectStatic void init () // only used in file{}Void callme () // used in the project{Static int sum;}The

The maximum common approx. Method in C Language

Input two integers from the keyboard. the maximum and minimum public approx. Method 1: Exhaustion# Include Main (){Int m, n, I;Scanf ("% d", & m, & n );For (I = m; I --)If (m % I = 0 & n % I = 0) break;Printf ("% d, % d", I, m * n/I );}--------------

C language compilation process favorites

Reprinted from: http://www.yuanma.org/data/2009/0506/article_3647.htm 1. Compile preprocessing Reads the c source program and processes the pseudocommands (commands starting with #) and special symbols.Pseudoinstructions mainly include the following

Definition of virtual Foundation

# Include "stdafx. h" # Include # Include Using namespace std; Class person {// declare the base classProtected:Int age;Char sex;String name;Public:Person (int a, char s, string nam ){Age =;Sex = s;Name = nam;}};Class teacher: virtual public person{

Total Pages: 275 1 .... 146 147 148 149 150 .... 275 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.