Several macros related to the operating system platform

You can define the following Macros in stdafx. h as needed. // Yin# Ifndef winver // allow use of features specific to Windows 95 and Windows NT 4 or later.# Define winver 0x0501 // change this to the appropriate value to target Windows 98 and

Appropriate time for wm_exitsizemove to save the window position

Proper time to save the window position TheWm_exitsizemoveMessage is sent one time to a window, after it hasExited the moving or sizing modal loop. The window enters the moving or sizingModal loop when the user clicks the window's title bar or

Simple use of sigaction and Signal

# Include # Include # Include # Include Typedef struct _ delete_file_para_str{Int intdays;Char * strpaths;} Deletefileparastr;// Sigaction = SignalDeletefileparastr strpara = {9876, "/root/test |/var/Data "};Void handle (int s, siginfo_t * info,

Use digital signature in vc6

It is very convenient to use a digital signature in VC 2005, as long as it contains wintrust. h. softpub. H and mscat. h, and add wintrust. LIB; you can call the API directly, but it is troublesome to use vc6. You need to refer to the function and

The 64-bit Avro compilation process.

1. Prepare documents: Cmake-2.8.8-win32-x86.zip Avro-cpp-1.7.1.tar.gz Boost_000049_0.7z 2. The 64-bit boost lib Library requires only the three Boost_filesystem.lib Boost_system.lib Boost_program_options.lib During generation,

Advanced sogou Input Method

Now, most people use the smart I input method. The sogou input method should be an input method used by many people. Sogou's input method remains in the middle of our operating system for a long time. Therefore, making full use of its functions can

Contiki knowledge reserve 1: Duff's device)

Overview The following program suddenly appeared in the 1980s s switch (count % 8) { case 0: do { *to++ = *from++; case 7: *to++ = *from++; case 6: *to++ = *from++; case 5: *to++

Principle of port completion

Complete port (I/O completion ):Asynchronous Process calling (APCs): Only the thread that sends the overlapped request can provide the callback function (a specific thread is required to serve a specific I/O request ). Advantage of completing port

Configure cross-Compilation

During cross-compilation of an application,./configure is usually required to generate the corresponding makefile../The three most critical options for configure are: -- Host = HostThe system platform where the software runs. If this parameter is

Usage and simple description of smartdrv.exe and download of related programs

Smartdrv.exe is a disk cache utility.This program can be loaded to set the memory to the high-speed cache of the hard diskThis program is usually available in the installation folder of Windows 98. After running winnt in DOS 2000 or XP, you will

Postgre configuration and connection code

Download pgadmin3-1.6.2.zip and postgresql-8.2.3.tar.gz from www.postgresql.org(1admin The former is the management terminal installation package in windows, and the latter is the source code installation package of the database. (2gz copy

Customize your own eversecos

  Customize your own eversecos   A: Requirements: Use the CentOS-5.5-i386-bin-DVD.iso to customize their own release. Performance requirements: the installation process requires you to choose which components of the company and which RPM packages to

Dependency inversion, exception, auto_ptr, polymorphism, STL container, virtual Constructor

(1) The variables on the stack must be initialized. (2) memory allocated from the stack must be initialized. (3) whether the local variables on the stack have large array variables, leading to stack overflow exceeding the default limit (4) Whether

Use cyclic Single-Chain tables (two template classes: node classes and cyclic linked lists) to solve the problems of the Latin square matrix.

This is what Latin phalanx does. For example, the fourth-order Latin phalanx 1 2 3 4 2 3 4 1 3 4 1 2 4 1 2 3   There are no repeated numbers in each column in each row. Here, we use a Circular Single-chain table. The idea is that the first traversal

NSIs download plug-in

 --> Inetc plug-infrom NSIs Wiki Author: Takhir (talk, contrib) Contents[Hide] 1 Links 2 Description 3 command line 3.1 get DLL Function 3.2 Post DLL Function 3.3 head DLL

Malloc, free, new, delete

  (1) Free consecutive free2 times with the same pointer. If the program does not crash, it only indicates that your RP value is okay. I don't know when to crash. It is best to set the environment variable malloc_check _ for check. Refer to the

Example of c_str ()

First, a date class is defined. # Include # include using namespace STD; class date { int year, month, day; Public: void set (INT y, int M, int D); void set (string & S ); bool isleapyear () const; void print () const; }; void Date: Set

FD maximum and limit

The number of FD determines the maximum value of FD.   In Linux, the total number of FD enabled by the system is: /Proc/sys/fs/file-Max, depending on the memory The file-Max file/proc/sys/fs/file-Max sets the maximum number of file-handles that the

Adjust the partition size under Vista, which will cause the system to be suspended.

Before I reinstalled Vista, A friend saw the partition size of my system disk and told me, "How is your c disk so small? I installed vista30g, but now I only have 7 GBNow"At that time, I also said," You must have put things in disorder. "Now I found

Debug_new in GDI +

When using GDI + in wtl, the compilation problem occurs: Error c2660: gdiplus: gdiplusbase: Operator New: function does not use 3 ParameterError c2660: 'new': function does not take 3 parameters After searching, you can find related support

Total Pages: 64722 1 .... 28669 28670 28671 28672 28673 .... 64722 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.