System. reallocmem-apply for memory again

This example is based on the getmem example: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs; Type tform1 = Class (tform) Procedure formcreate (Sender: tobject); end; vaR form1:

System. getmem, system. freemem-apply for and release memory

If only one pointer is allocated memory, it is the same as new and dispose. The difference is that getmem can apply for multiple consecutive memory blocks. Example: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes,

Winapi: clipboard Function

Getopenclipboardwindow: hwnd ;{} Getpriorityclipboardformat (VAR paformatprioritylist; {} cformats: integer {}): integer ;{} Isclipboardformatavailable (Format: uint {}): bool; Emptyclipboard: bool ;{}

Learning to use tstringgrid [9]-ondrawcell

In this example: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, extctrls, grids; Type tform1 = Class (tform) stringgrid1: tstringgrid; panel1: tpanel; button1:

Delphi algorithm and Data Structure Learning and perception [3]: getting the number of non-vacant bytes

One byte has eight digits, which may be 0 or 1; now we need to calculate the total number of digits in one byte. The first method is a function;The second method is stupid. It is to first assign the 256 possible values to an array and retrieve

Learning and perception of Delphi algorithm and data structure [4]: About const

If the parameter cannot be modified in the function, you must use const; Otherwise, the compiler will:Assume that you need to modify the file first, and back up the file first. You need to increase or decrease the reference count before and

Learning and perception of Delphi algorithm and data structure [5]: Why isn't the POs function the fastest when positioning a character?

If the first parameter of the POs function is Char rather than string, the compiler will first convert Char to string; From memory structure to management mechanism, string is far more complex than char. Therefore, there is still room for

Learning the implementation of the tlist class [5]

Implement tmylist. setcapacity first. I will think of the following soonCode: Procedure tmylist. setcapacity (const value: integer); begin if fcapacity value then fcapacity: = value; end; However, this is far from enough. The key

Winapi: setlayeredwindowattributes-set window transparency

This is guest Dolby in http://www.cnblogs.com/del/archive/2008/03/08/1081295.html#1096814 Question. // Declaration: setlayeredwindowattributes (hwnd: thandle; {window handle} crkey: colorref; {transparent color} balpha: byte; {Alpha value}

Types and pointers of Delphi [1]

First declare: do not regard the things I have mentioned as textbooks. They are all my own opinions and hope to be corrected. Delphi pointers are classified into two types: "type Pointer" and "No type Pointer.In Delphi, there must be several

Create a special window [2]

In this example: Unit unit1; interfaceuses windows, messages, extensions, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; Procedure formcreate (Sender: tobject); Procedure

Learning to use tstringgrid [4]-colwidths, rowheights

Function in this example: 1. Adjust the unit width; 2. Adjust the unit height. Run: // This example Code : Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, classes, extctrls,

Formatting output function (1): Format

VaR S: string; begin // command type S: = format ('maximum INTEGER: % d; minimum integer: % d', [maxint, low (integer)]); // return: The maximum integer is 2147483647; the minimum integer is-2147483648 {prompt: The format command must start with %,

Sort the numbers in series by tstringlist-reply to the lancerning issue

Problem Source: http://www.cnblogs.com/del/archive/2008/04/07/1134178.html#1141173 Unit unit1; interfaceuses windows, messages, extensions, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1:

Delphi algorithm and Data Structure Learning and sentiment [10]: two-way linked list

If the 4-byte address space in the structure points to the previous node, it becomes a two-way linked list. In this example: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms,

Color Control for one line of code

In this example: Tip: after creating a project, add the tcolorbox, tcolorlistbox, tcolorgrid, and tbuttoncolor controls, double-click them to create default events, and paste them below. Code : unit unit1; interfaceuses windows,

Delphi algorithm and Data Structure Learning and sentiment [9]: Circular linked list

In the previous example, the End Node of the linked list is no longer linked to other nodes. If the end node is connected to the first node, isn't it a circular linked list? In this example: Unit unit1; interfaceuses windows,

Delphi algorithm and data structure: adding, deleting, and traversing a one-way linked list

In this example: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) memo1: tmemo; button1: tbutton; button2: tbutton; button3: tbutton;

Delphi algorithm and Data Structure Learning and sentiment [6]: A simple "one-way linked list"

Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; button2: tbutton; procedure formcreate (Sender: tobject); Procedure button1click

Winapi: menu function Summary

function LoadMenu( hInstance: HINST; {} lpMenuName: PChar {}): HMENU; {} function LoadMenuIndirect( lpMenuTemplate: Pointer {}): HMENU; {} function GetMenu( hWnd: HWND {}): HMENU; {} function SetMenu( hWnd: HWND;

Total Pages: 64722 1 .... 54254 54255 54256 54257 54258 .... 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.