typedef void  prVoid;
typedef unsigned char prUInt8;
typedef  char prInt8;
typedef  char prChar;

解决方案 »

  1.   

    typedef void  prVoid; 
    Delphi没有此类型
    type
      prUInt8 = Byte; 
      prInt8 = Shortint; 
      prChar = char;
      

  2.   

    那这段又如何写 ??#ifdef macintosh
    #define prSTDCALL
    #else
    #define prSTDCALL __stdcall
    #endif#ifdef __cplusplus
    extern "C" {
    #endif#ifdef PRSDK_EXPORT
    #define prCAPI prResponse __declspec(dllexport) prSTDCALL
    #else
    #define prCAPI prResponse __declspec(dllimport) prSTDCALL
    #endif#ifdef __cplusplus
    }
    #endif
      

  3.   

    delphi当中只支持 _stdcall这一个选项。
      

  4.   

    delphi的预编译和c的define有些差别,所以要完全实现上面的恐怕不好办楼主你指望一个c的程序只要逐句翻译就可以拿到delphi里来用吗? 还是先自己搞懂原来的程序吧. 如果你知道c的#define的原理,完全可以用delphi的方式自己去改写,而不是现在这样逐句"翻译"