[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

File not found: 'DockForm.dcu'

Posted on 2010-11-26
5
Medium Priority
?
2,891 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

649 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