Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» Delphi 的open tools api 可不可以实现 Add files to project功能?
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: Delphi 的open tools api 可不可以实现 Add files to project功能?
5207
新警察
UID 40944
Digest Posts 0
Credits 18
Posts 8
点点分 18
Reading Access 10
Registered 2008-9-15
Status Offline
#1
Post at 2011-1-22 22:36
Profile
|
Blog
|
P.M.
Delphi 的open tools api 可不可以实现 Add files to project功能?
Delphi 的open tools api 可不可以实现 Add files to project功能?
我想做一个功能,将代码自己添加到某个dpr中去
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2011-1-23 08:01
Profile
|
Blog
|
P.M.
可以。具体可参考CnWizards源码中的INI向导生成等的源码,它使用OTACreators系列接口给IDE中添加源码。
5207
新警察
UID 40944
Digest Posts 0
Credits 18
Posts 8
点点分 18
Reading Access 10
Registered 2008-9-15
Status Offline
#3
Post at 2011-1-23 20:01
Profile
|
Blog
|
P.M.
回复 #2 Passion 的帖子
能否具体一点点,我没找到代码的入口部分。。
5207
新警察
UID 40944
Digest Posts 0
Credits 18
Posts 8
点点分 18
Reading Access 10
Registered 2008-9-15
Status Offline
#4
Post at 2011-1-24 01:29
Profile
|
Blog
|
P.M.
看了源代码,貌似OTA只能在IDE中使用,如果脱离IDE就不能使用了。
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#5
Post at 2011-1-24 12:51
Profile
|
Blog
|
P.M.
没错。不在IDE中要操作的话,就只有手工扫描目录下的dpr文件,手工分析其格式,在uses一部分加入你的新单元名和路径了。
5207
新警察
UID 40944
Digest Posts 0
Credits 18
Posts 8
点点分 18
Reading Access 10
Registered 2008-9-15
Status Offline
#6
Post at 2011-1-24 20:39
Profile
|
Blog
|
P.M.
回复 #5 Passion 的帖子
谢谢回复。
只不过我想了下,集成IDE中也不错。解析的过程也简单的写了下,发现也不难,只是bpl、exe、dll等的工程文件有少许区别。。呵呵。还有就是单元依赖问题。
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 19:12
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.007298 second(s), 8 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats