?
Solved

File not found: 'DockForm.dcu'

Posted on 2010-11-26
5
Medium Priority
?
2,792 Views
Last Modified: 2012-05-10
Delphi 2010

I am writing a component that requires the use of both the units

DesignIntf, DesignEditors

When i build my package, i get the error

File not found: 'DockForm.dcu'

When I add "designide.dcp" to the "requires" section of the package, it builds and compiles just fine.

HOWEVER, when i add the component to a new project (in design time, it works. I can change all the properties, etc......BUT, it does NOT work in runtime.

When i run the application with the component on the main form, i once again get the "
"File not found: 'DockForm.dcu'" error

Delphi 2010

please help

thanks
0
Comment
Question by:Looking_4_Answers
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 14

Expert Comment

by:systan
ID: 34219242
For me?
First thing to do is to look for DockForm.dcu, put it in the folder where your project files are located.
Second, if DockForm.dcu, does not really exists, or not found, I'll go to project options, packages, then removed the packages that calls DockForm.dcu.
0
 
LVL 32

Expert Comment

by:Ephraim Wangoya
ID: 34219288

Go to Tools->Environment options

Make sure to include the path of DockForm.dcu in the Library path or DockForm.Pas in the Browse Path
0
 

Author Comment

by:Looking_4_Answers
ID: 34219933
systan:

Of couse, it exists. Its part of the Delphi 2010 Runtime packaging. You get the DCU, but not the Pascal file, just like Proxies.dcu.

I can't remove the packages that call DockForm...because it is a Unit that calls it ToolsApi.pas, which is needed in my component for doing custom property editors.

@ewangoya:  i assume you mean the component package and not the application the component resides on. The path is in the component package.

this is not a project, this is a component. I can't make my users path the component to whereever DockForm.pas resides.


Neither of these answers is what i am looking for.

I believe what i am looking for is the fact that Dockform.dcu is not allowed for runtime, but for designtime only. Therefore i need to add the code somewhere in my component that checks that the component is being used in designtime only, and not runtime.

The property editors are not used at runtime, only design time
0
 

Accepted Solution

by:
Looking_4_Answers earned 0 total points
ID: 34219997
It  looks like you need to segregate the design-time code from runtime code

http://edn.embarcadero.com/article/27717

0
 

Author Closing Comment

by:Looking_4_Answers
ID: 34246467
It  looks like you need to segregate the design-time code from runtime code

http://edn.embarcadero.com/article/27717
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month14 days, 15 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question