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
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
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
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
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
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
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
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
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
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
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
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];
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
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 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
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
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 );}--------------
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
# 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{
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.