bcb中使用pas文件

来源:互联网 发布:基于yii的cms 编辑:程序博客网 时间:2024/06/11 04:42
 

因为以前多用delphi开发,最近需要用c++builder 开发一些小软件,正好bcb可以使用delphi的源码,所以直接添加,因为delphi的pas源码中使用了部分的raize控件,所以bcb中也需安装raize,几经周折,终于将raize安装到了bcb中,但是编译时却在d uxtheme.hpp中出现了两个need a identifier to declare的错误,修改如下:

typedef enum PROPERTYORIGIN
{
    PO_STATE,           // property was found in the state section
    PO_PART,            // property was found in the part section
    PO_CLASS,           // property was found in the class section
    PO_GLOBAL,          // property was found in [globals] section
    PO_NOTFOUND         // property was not found
} PROPERTYORIGIN;

 

typedef enum THEMESIZE
{
    TS_MIN,             // minimum size
    TS_TRUE,            // size without stretching
    TS_DRAW            // size that theme mgr will use to draw part
} THEMESIZE;

编译通过。