🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #1742

Re: ���DELPHI�пɱ�������÷�

#1742
From: ����~ ��������
Date: Tue, 24 Mar 1998 00:00
37 lines
1641 bytes
> ==> Early_Chou(Good luck)                    ˵��: 
> ����˵��Խ������DZ���ʱ���Ĵ?��������ʱ�? 
> ���DZ���?����Ϊ���DataUnit����Ϊarray[0..0]of 'yourtype' 
> �ڵ���Buffer[2]ʱ���±�'2'�����˶������������0' 
 
   early��˵�ú�, ���Ҫ����Խ���, ��������ô:

   Here is ome information that shows how to use this dynamic allocation
for matrix code writing in a general way:

Type
  BigData= array [0..High(cardinal) div sizeof($YOURTYPE)-1] of $YOURTYPE;
  PBigData= ^BigData;

{$YOURTYPE is a variable type, such as Integer, Word, Byte.. etc }

   # then you can define a variable as
      
     aBigArray: PBigData;

   # Use this function to allocate memory:

     GetMem(aBigArray, SIZE AS YOU WISH);

   # And use aBigArray^[index] to visit it:
 
     aBigArray^[INDEX AS YOU WISH] := aValue;

   # Remember to free the allocated memory:
   
     FreeMem(aBigArray);

   If you use 32 bits Delphi, you can use more than 64K memory.

--
�� ��Դ: �й�ƴ�BBSվ [bbs.ustc.edu.cn]
Technical Details
Message-ID: <980324.yHRKT$PBBS@bbs.ustc.edu.cn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: fc86e,7c00c9008b5a80cf
X-Google-Attributes: gidfc86e,public
From: Sea_Boy@bbs.ustc.edu.cn (����~ ��������)
Subject: Re: ���DELPHI�пɱ�������÷�
Date: 1998/03/24
Message-ID: <980324.yHRKT$PBBS@bbs.ustc.edu.cn>
X-Deja-AN: 337191431
Organization: �й�ƴ�BBSվ
Newsgroups: cn.bbs.comp.program