devil_bcb 发表于 2016-08-02 10:49

C++ Builder问题:Error Reading Form

本帖最后由 devil_bcb 于 2016-08-02 10:52 编辑

小弟Borland C++ Builder新手,最近接手维护公司一个软件。它是用Borland C++ Builder 5 开发的。
我在自己笔记本上搭建环境,导入原项目后。能编译通过,但是查看窗体时碰到以下问题。
Error Reading Form:Class TImageButton not found. Ignore the error and continue? Note: Ignoring the error may cause components to be deleted or propertty values to be lost.

想请教下CU的老手们有没有相关经验?
先谢谢了~~~

devil_bcb 发表于 2016-08-02 11:00

我在SO上找到了类似的问题:
http:去掉这部分中文//stackoverflow.com/questions/19923926/error-opening-a-dfm-file-class-xxxx-not-found
但是我这个项目目前比较混乱。之前的开发人员已经不在了(这是一个5、6年前的项目,之前无人搭理)。我找到了TImageButton对应的组件,它只有源代码。我不知道接下来应该怎么处理。因为刚接触BCB5,对它的操作很不熟练。

evaspring 发表于 2016-08-02 11:39

悲剧~ 这年头还在用cb的公司真是无语,你跟老大说用c#重写吧

devil_bcb 发表于 2016-08-02 17:17

最终还是解决了。
读取不了窗体时因为这些自定义的类所组成的组件(他们在Borland C++ Builder中被称为“设计时包”)还没有导入到项目中去,导入进去就好了。
中间需要把一些依赖的动态链接库拷贝到C:/Windows/System32目录下,不然会报错。
页: [1]
查看完整版本: C++ Builder问题:Error Reading Form