首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

Delphi与C/C++的数据转化,该怎么处理

2013-04-20 
Delphi与C/C++的数据转化小弟在C++下有一个数据结构struct potrace_bitmapindex_s {int fillcolor//底色,

Delphi与C/C++的数据转化
小弟在C++下有一个数据结构


struct potrace_bitmapindex_s {
int fillcolor;//底色,也是填充色
  int w, h;              /* width and height, in pixels */
  unsigned char *map;     /* raw data, w*h BYTE */
  int *Pal;//索引表的指针
};

想转化为Delphi下对应的数据结构,大家能不能帮瞎忙,另外问一下,有没有什么C++与Delphi数据项对应关系的文章? delphi c++ struct
[解决办法]
porrace_bitmapindex_s = record
    fillcolor: integer;
    w, h: integer;
    map: uchar;
    pal: pinteger;
  end;

热点排行