In it, it had used DesignIntf and I've added designide.dcp to the require
clause of the package. The package can be successfully compile and
installed and yet when I used this component in a form and run, the compiler
gives the messages of 'Cannot find unit DesignIntf.dcu'.
I needed to add the toolsapi directory to my Delphi library path so that the
program can run.
Can anyone tell me what's wrong with this?
Thankx a lot.
Bosco
> Can anyone tell me what's wrong with this?
Nothing.
I thought we are not supposed to add the toolsapi source directory to the
library path for the program to run coz i've already add the designide.dcp
to the require part of the package and also during the compilation and
installation of the package, I didn't need to add the toolsapi source
directory to the library path.
Bosco
"Alessandro Federici" <alef@[nospam]remobjects.com> wrote in message
> I thought we are not supposed to add the toolsapi source directory to the
> library path for the program to run coz i've already add the designide.dcp
> to the require part of the package and also during the compilation and
> installation of the package, I didn't need to add the toolsapi source
> directory to the library path.
Sorry, I missread your original post.
I thought you built a component *editor*, not *package*.
I am not sure how to answer to your question then.
You should not need those units for runtime (non-IDE) applications.
Why did u need to add DesignIntf? Just curious.
Bosco
"Alessandro Federici" <alef@[nospam]remobjects.com> wrote in message
news:3e5b3aaa$1...@newsgroups.borland.com...
--
Bojidar Alexanrov
Kodar Ltd.
http://www.Kodar.net
> I had build a component package using Delphi7.
Please read http://bdn.borland.com/article/0,1410,27717,00.html
--
Rudy Velthuis (TeamB)
"Put your hand on a hot stove for a minute, and it seems like an hour.
Sit with a pretty girl for an hour, and it seems like a minute.
THAT'S relativity." - Albert Einstein
> "b!" <a...@a.com> wrote in message news:3e5b...@newsgroups.borland.com...
>
> > Can anyone tell me what's wrong with this?
>
> Nothing.
Are you serious? He didn't properly segregate his runtime and his design
time code. That is wrong with it.
> Because my component has its own component editor at design time so I need
> to call the RegisterComponentEditor function.
But not at runtime. So divide your code into runtime and designtime-only
code.
> Are you serious? He didn't properly segregate his runtime and his design
> time code. That is wrong with it.
I wish people would read at least one level of replies... <G>
Quote: "Sorry, I missread your original post. I thought you built a
component *editor*, not *package*."
> I wish people would read at least one level of replies... <G>
<g>