国产探花免费观看_亚洲丰满少妇自慰呻吟_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(八)

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

新聞熱點

疑難解答

圖片精選

網友關注

主站蜘蛛池模板: 呼图壁县| 缙云县| 新巴尔虎右旗| 巴南区| 长子县| 梁河县| 扶风县| 定日县| 治县。| 荃湾区| 大埔县| 凉山| 谢通门县| 闻喜县| 松潘县| 靖西县| 慈溪市| 黄冈市| 涿州市| 蒙阴县| 乃东县| 博湖县| 昌邑市| 安平县| 潍坊市| 兖州市| 通许县| 奉节县| 富阳市| 土默特左旗| 五莲县| 宁陕县| 诸城市| 麦盖提县| 芦溪县| 聂拉木县| 乌苏市| 衡水市| 阿拉善右旗| 汨罗市| 渑池县|