Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cannot find unit DesignIntf.dcu

0 views
Skip to first unread message

b!

unread,
Feb 25, 2003, 3:29:02 AM2/25/03
to
I had build a component package using Delphi7.

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


Alessandro Federici

unread,
Feb 25, 2003, 3:45:58 AM2/25/03
to
"b!" <a...@a.com> wrote in message news:3e5b...@newsgroups.borland.com...

> Can anyone tell me what's wrong with this?

Nothing.


b!

unread,
Feb 25, 2003, 3:55:09 AM2/25/03
to
Nothing?? Can you explain more.

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

Alessandro Federici

unread,
Feb 25, 2003, 4:43:13 AM2/25/03
to
"b!" <a...@a.com> wrote in message news:3e5b2e56$1...@newsgroups.borland.com...

> 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.

b!

unread,
Feb 25, 2003, 4:51:23 AM2/25/03
to
Because my component has its own component editor at design time so I need
to call the RegisterComponentEditor function.

Bosco
"Alessandro Federici" <alef@[nospam]remobjects.com> wrote in message

news:3e5b3aaa$1...@newsgroups.borland.com...

Bojidar Alexandrov

unread,
Feb 25, 2003, 5:35:47 AM2/25/03
to
Then make two packages - one design time and one runtime


--
Bojidar Alexanrov
Kodar Ltd.
http://www.Kodar.net


Rudy Velthuis (TeamB)

unread,
Feb 25, 2003, 7:19:03 AM2/25/03
to
In article <3e5b...@newsgroups.borland.com>, b! says...

> 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

Rudy Velthuis (TeamB)

unread,
Feb 25, 2003, 7:19:54 AM2/25/03
to
In article <3e5b...@newsgroups.borland.com>, Alessandro Federici
says...

> "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.

Rudy Velthuis (TeamB)

unread,
Feb 25, 2003, 7:22:45 AM2/25/03
to
In article <3e5b3b84$1...@newsgroups.borland.com>, b! says...

> 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.

Alessandro Federici

unread,
Feb 25, 2003, 2:54:28 PM2/25/03
to
"Rudy Velthuis (TeamB)" <rvel...@gmx.de> wrote in message
news:MPG.18c57dd29...@forums.borland.com...

> 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*."


Rudy Velthuis (TeamB)

unread,
Feb 25, 2003, 3:01:51 PM2/25/03
to
In article <3e5bca34$3...@newsgroups.borland.com>, Alessandro Federici
says...

> I wish people would read at least one level of replies... <G>

<g>

b!

unread,
Feb 25, 2003, 8:57:16 PM2/25/03
to
thanks a lot

"Rudy Velthuis (TeamB)" <rvel...@gmx.de> wrote in message
news:MPG.18c57e7eb...@forums.borland.com...
0 new messages