国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > C++ > 正文

如何將C/C++程序轉譯成Delphi(九)

2019-11-18 18:50:15
字體:
來源:轉載
供稿:網友

Case Integer of starts the variant part of the record. Each variant is identified by an ordinal value. This value has no meaning when the type is being used, but is required for declaration.

Please note the difference between a variant (case-) record and a record without case-declaration.

The following translation is wrong:

type  PPRocessHeapEntry = ^TProcessHeapEntry;  TProcessHeapEntry = Record    lpData: Pointer;    cbData: DWord;    cbOverhead: Byte;    iRegionIndex: Byte;    wFlags: Word;    Block: Record       hMem: Thandle       Reserved : Array [0..2] of DWord;    end;    Region: Record      dwCommittedSize: DWord;      dwUnCommittedSize: DWord;      lpFirstBlock: Pointer;      lpLastBlock: Pointer    end);  end;

This wrong translation would cause Block and Region to be consecutive in memory, and not overlaid, as follows:

LpData, cbData, cbOverhead, iRegionIndex, wFlags HMem, dwReserved DwCommittedSize, dwUnCommittedSize, lpFirstBlock, lplastBlock


Back to contents


上一篇:如何將C/C++程序轉譯成Delphi(十)

下一篇:如何將C/C++程序轉譯成Delphi(八)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
學習交流
熱門圖片

新聞熱點

疑難解答

圖片精選

網友關注

主站蜘蛛池模板: 固始县| 伊春市| 威宁| 洞口县| 湖口县| 静安区| 科尔| 曲阜市| 进贤县| 临汾市| 绿春县| 中山市| 汶上县| 平定县| 介休市| 郓城县| 环江| 中宁县| 呼图壁县| 罗源县| 新安县| 湛江市| 湟中县| 大港区| 南川市| 赤峰市| 香港| 铜陵市| 特克斯县| 金平| 武清区| 上犹县| 和平县| 轮台县| 江油市| 曲阜市| 巢湖市| 岱山县| 栾川县| 门源| 泉州市|