怎样在radstudio2010中安装The Drag and Drop Component Suite for Delphi 5.2?

coolspac 2010-09-03 07:37:29
RT
控件的链接是
http://melander.dk/delphi/dragdrop

我按照readme里面的方法进行path设置后,打开dpr,发现delphi2010默认并没有载入dof文件中的输出路径相关的设置,所以自己去project——option里面设置了相关的输出目录,然后选 Generate all C++ Builder files (including package libs) 保存后install

结果在delphi下使用正常
在bcb下使用就会提示
Unable to open file 'DRAGDROP.OBJ'

当我手动链接 dragdropd2010.lib时,编译和运行正常,但是如果放入控件TDropFileTarget,编译,则还是会出其他的错误。

请教有谁在radstudio2010下成功安装此控件并且在bcb和delphi中都能正常使用?


给出能真正解决此问题的方法或者步骤后即结贴
...全文
175 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
cgisky 2010-11-05
  • 打赏
  • 举报
回复
我下了最新的5.2版的 ydlchina 的办法 编译通过了 安装了

我要用的那个ComboTarget 编译就出错~~~~~~
ydlchina 2010-09-06
  • 打赏
  • 举报
回复
我又重新安装给你试了,没有问题啊.除了将那句换成 #define error(随便的),编译没有问题.从来没有用过,也不知如何使用,只是新建一个项目放上DropEmptySource1,DropEmptyTarget1,DropDummy1,DataFormatAdapter1然后编译成功了.

你在options 里设置那两个路径了吗?就是那个Source文件夹.

另外你是先建个CB的bpl包,然后编译安装的?


友情提示:如果你觉得有用,请回复有意义.谢谢!
coolspac 2010-09-06
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 ydlchina 的回复:]
这种帖子回复了也会被水产,所以就没有在意,沉底了帮你捞上来.

下载了一个是个免费的,就帮你试了一下,我是在CB建了一个包,将Source里的pas文件统统添加,编译成功,也安装成功的
编译前需要做这几步
1 Project > Options > Delphi Compiler > Compiling >Other Options >Additional options to pass ……
[/Quote]

这个编译提示好办,添加宏定义即可,但是添加宏定义之后,编译,会继续出其他错误。
宏提示错误指示最开始的检查部分报的错
ccrun.com 2010-09-06
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 ydlchina 的回复:]
这种帖子回复了也会被水产,所以就没有在意,沉底了帮你捞上来.
[/Quote]

如果你回复的有意义,还怕被水产吗?
ydlchina 2010-09-06
  • 打赏
  • 举报
回复
这种帖子回复了也会被水产,所以就没有在意,沉底了帮你捞上来.

下载了一个是个免费的,就帮你试了一下,我是在CB建了一个包,将Source里的pas文件统统添加,编译成功,也安装成功的
编译前需要做这几步
1 Project > Options > Delphi Compiler > Compiling >Other Options >Additional options to pass to compiler 添加-LUDesignIDE(注意前面的"-")
2 在 Requires 添加designide.bpi(在安装目录的Embarcadero\RAD Studio\7.0\lib\release里)

编译它提供的Demo没问题,可在CB他会提示
[BCC32 Fatal Error] DragDrop.hpp(26): F1003 Error directive: The NO_WIN32_LEAN_AND_MEAN symbol must be defined in your projects conditional defines

这个好像是要自己解决的.就随意加了个#define,编译运行没发现问题,感觉这么安装能够使用.你自己试试
coolspac 2010-09-06
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 ydlchina 的回复:]
另外个别组件不能使用,但并不影响其它组件使用,在以前也碰到过.
[/Quote]

.......
问题是那几个用得着。。。

算了,我结贴吧,估计没人能搞定,不知道啥地方出的bug
ydlchina 2010-09-06
  • 打赏
  • 举报
回复
另外个别组件不能使用,但并不影响其它组件使用,在以前也碰到过.
ydlchina 2010-09-06
  • 打赏
  • 举报
回复
使用你的方法需要先"Generate C++ .objs, headers, namespaces, export"
但我没有编译成功,对Delphi不是太明白.
coolspac 2010-09-06
  • 打赏
  • 举报
回复
如果把除dropfilesource和dropfiletarget控件外的所有控件都放一个到form里,编译会报一堆其他错误
例如

[BCC32 Error] Dragdropcomobj.hpp(28): E2303 Type name expected
Full parser context
Unit1.cpp(6): #include Unit1.h
Unit1.h(11): #include D:\Program Files\Embarcadero\Components\DragDrop\Library\DragDropContext.hpp
DragDropContext.hpp(20): #include D:\Program Files\Embarcadero\Components\DragDrop\Library\Dragdropcomobj.hpp
Dragdropcomobj.hpp(24): namespace Dragdropcomobj
Dragdropcomobj.hpp(27): class TVCLComObject

用的是官方自带的for delphi2010的包。自己另外建一个包,效果也一样
coolspac 2010-09-06
  • 打赏
  • 举报
回复
详细的出错信息是

[ILINK32 Error] Error: Unresolved external '' referenced from D:\PROGRAM FILES\EMBARCADERO\COMPONENTS\DRAGDROP\LIBRARY\DRAGDROPD2010.LIB|DragDropPIDL

在form里面放置dropfiletarget控件后,编译报错如上。
coolspac 2010-09-06
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 ydlchina 的回复:]
我又重新安装给你试了,没有问题啊.除了将那句换成 #define error(随便的),编译没有问题.从来没有用过,也不知如何使用,只是新建一个项目放上DropEmptySource1,DropEmptyTarget1,DropDummy1,DataFormatAdapter1然后编译成功了.

你在options 里设置那两个路径了吗?就是那个Source文件夹.

另外你是先建个CB的……
[/Quote]
不是,我不是自己建包安装的,因为我经常bcb和delphi都用,因此我用的是官方的那个压缩包里的 for delphi2010 的包安装的,在工程的option里面设置了产生所有c++ build files。
安装后delphi下使用没有任何问题,但是bcb下会提示找不到dragdrop.obj
这个好办
我将param link改成了 link dragdrop2010.lib,这个错误得到解决,但是当我form里面放上TDropFileSource ,TDropFileTarget,编译程序就会出错
Enhance Your Delphi Application with Drop-in Shell Functionality •Includes 18 visual and non-visual components •Create Explorer-like applications within minutes with JamShellTree, the JamShellList and the JamShellCombo •Easy drop-in: Just drop the UI components right on your own forms or dialogs •Use checkboxes with JamShellTree, JamShellList, JamFileList and JamDriveList Icons and thumbnails are queried in background threads. This optimizes the reactivity and does not slow down the speed of the user interface. Look-and-Feel of the Windows Explorer •Windows Shell context menu (can be extended with a Delphi popmenu) •OLE drag-and-drop with the Windows Explorer and similar applications •Different view styles: The JamShellList and the JamFileList support small icons, large icons, extra large icons, details mode and thumbnails •Overlay icons supported •Installed Shell extensions, which are supported by the Windows Explorer, are also supported by the ShellBrowser Delphi Edition •TJamSystemShellView instances the right pane of the real Windows Explorer •Background context menu in the JamShelllist is supported How-to Guides •Comprehensive documentation of the included controls •Several sample projects for basic and advanced features of ShellBrowser Delphi Edition included Transparent Costs •The ShellBrowser Delphi Edition is royalty free and involves no runtime fees 100% Delphi Code•The controls are based on the Delphi VCL and are written in 100% Object Pascal code •No additional DLLs or ActiveX controls are necessary

604

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder VCL组件使用和开发
社区管理员
  • VCL组件使用和开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧