数据模块的问题?
我的数据模块中有Imaglist FileOpenDialog FileSaveDialog 等等控件
其中有一个函数使用以下参数
TTlistItem *tsItem, TTreeNode *tvNode
我包含以下头文件
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Dialogs.hpp>
#include <ExtDlgs.hpp>
#include <ImgList.hpp>
#include <QComCtrls.hpp>
编译就会出错:???
[C++ Error] Unit2.h(18): E2015 Ambiguity between 'TOpenDialog' and 'Dialogs::TOpenDialog'
[C++ Error] Unit2.h(19): E2015 Ambiguity between 'TSaveDialog' and 'Dialogs::TSaveDialog'
[C++ Error] Unit2.h(28): E2015 Ambiguity between 'TImageList' and 'Controls::TImageList'
我把 #include <QComCtrls.hpp> 去掉就可以编译了,可是不能使用
类似 TTlistItem *tsItem, TTreeNode *tvNode 的参数了。
请问怎么处理才可以同时工作???
C++Builder 5 没有以上问题
C++Builder 6 中就会出现上述问题(安装了sp1 sp2 sp3)