Learning Win32 compilation [19]: viewing binary and other related functions

There are several function declarations in masm32.inc: Byt2bin_ex proto: byte,: dwordwrd2bin_ex proto: Word,: dworddw2bin_ex proto: DWORD,: dworddw2hex_ex proto: DWORD,: dwordbin2byte_ex proto: DWORD Byt2bin_ex: Count from byte to

Difference between dupestring and stringofchar

Difference between dupestring and stringofchar   Stringofchar is a function that repeats "character" into "string; Dupestring is a function that repeats "string" into "New String; Stringofchar comes from the system unit and can be used

Obtains the rtti attribute and event functions of an object.

Uses typinfo; {this unit is required to obtain class information} // Obtain the rtti attribute and event functions of the objectFunction getpropertyandeventlist (OBJ: tobject; plist, elist: tstringlist): Boolean;VaRClasstypeinfo: ptypeinfo; {class

Convert Delphi interface to COM interface

Delphi is compatible with the Data Types of COM. Otherwise, it is not true. Here is a simple example: // DelphiProcedure tyn. save2 (data: olevariant; out errcount: integer );BeginDspunit. applyupdates (data, 0, errcount );End; // ComProcedure

Tclientdataset [23]: Use the dataset field (tdatasetfield)

The runtime design method is as follows: Preparations for design:Clientdataset1, performance1, and dbgrid1 are associated, which is used for the master table;Clientdataset2, performance2, and dbgrid2 are associated, which will be a

Tclientdataset [24]: Master/Slave table (master/detail)

The official example file (main table: orders. xml; slave table: items. XML) is used for the test ). // Add the following to the form: // clientdataset1, performance1, dbgrid1, clientdataset2, performance2, and dbgrid2; then: Procedure

Tclientdataset [27]: Field Value constraint (or input restriction)

Required, precision, maxvalue, minvalue: Begin {required: required field} with tintegerfield. create (Self) Do begin fieldname: = 'id'; required: = true; Dataset: = clientdataset1; end; {precision: floating point Precision} with tfloatfield.

Socket blocking connections

Blocking connectionsWhen the connection you are using is blocking, your socket must initiate read or write operations through the connection, instead of passively waiting for notifications from the socket connection.Use blocking socket when the read

Size, maximum, and minimum values of the ordered type

Size, maximum, and minimum values of the ordered type Procedure Tform1 . Button1click (Sender: tobject ); VaR B: byte; W: word; I: integer; C: Cardinal; Begin Showmessage (inttostr (sizeof (B ))); // Byte size: 1 Showmessage (inttostr (high (B )))

ADO connection pool

// ================================================ ==========================================================// ADO connection pool cxg 2008-09-26 16:47:40// ================================================ ==========================================

Enumeration serial port

Procedure enumcomports (ports: tstrings );VaRKeyhandle: hkey;Errcode, index: integer;Valuename, data: string;Valuelen, datalen, valuetype: DWORD;Tmpports: tstringlist;BeginErrcode: = regopenkeyex (HKEY_LOCAL_MACHINE,'Hardware/devicemap/serialcomm ',0

ASCII code table

View new table ASCII Value Control characters Note 0 Nut 1 Soh Title start 2 STX Start of Text 3 Etx Text ended 4 EOT

How to make the method in the class as a parameter-reply to the question "Lin ☆☆"

Problem Source: http://www.cnblogs.com/del/archive/2008/08/15/1268301.html#1806783 Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs; Type tform1 = Class (tform) Procedure formcreate

How to scale down the page in twebbrowser-reply to the "elegant blue" question

Problem Source: http://www.cnblogs.com/del/archive/2009/03/13/1410935.html#1803351 Twebbrowser calls IE, which is only supported after IE7. Preparations:1. Add webbrowser1 and button12. Activate the oncreate event of the form and the onclick

Copy Dynamic Array

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

Learning Win32 Assembly [16]: common functions of common registers

General registers Eax Accumulator register Ax (ah, Al) It is often used for multiplication, division, and function return values. EBX Base register Bx (BH, BL) Usually refers to the Memory Data

Simulate clicking the button in the webpage-reply to the "starcraft_ly" question

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, olectrls, shdocvw; Type tform1 = Class (tform) webbrowser1: twebbrowser; button1:

Questions about "high" and "low"-Reply to "lovemit"

Problem Source: http://www.cnblogs.com/del/archive/2008/09/11/1288760.html#1807074 This topic will involve: Lo, hi, hibyte, loword, hiword, makeword, makelong, int64rec For example, there is an integer of the Cardinal type: 1144

Tclientdataset [17]: statusfilter

Test diagram: Test code: unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, CheckLst, Grids, DBGrids, DB, DBClient;type TForm1 = class(TForm) ClientDataSet1:

Win32 compilation [17]: One of the push and pop

I remember that when I first learned multithreading, I encountered a structure: // Delphi syntax description pcontext = ^ tcontext; _ context = record contextflags: DWORD; dr0: DWORD; DR1: DWORD; DR2: DWORD; dr3: DWORD; dr6: DWORD; dr7: DWORD;

Total Pages: 64722 1 .... 54242 54243 54244 54245 54246 .... 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.