vc的结构如下:typedef struct _tex
{
   unsigned int   id;
   float          x;
   float          y;
   struct _tex*   lppre;
   struct _tex*   lpnxt;
}
tex,*lptexvc里面定义指针的没搞懂,怎么变成delphi的呢?  

解决方案 »

  1.   

    type
      lptex = ^tex;
      _tex = record
        id: Longword; 
        x: Single; 
        y: Single; 
        lppre: lptex; 
        lpnxt: lptex; 
      end;
      tex = tex;
      

  2.   

    结构跟其它结构一样使用,指针数据的申请和释放按照程序既有的约定。比如一个DLL当中的参数是一个结构体的指针,那么对于这个指针的内存管理DLL必须有相应的约定,这是依照程序设计时的内存管理逻辑所做出的。