Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Controls.res not found


This question is answered.


Permlink Replies: 10 - Last Post: Apr 2, 2017 6:01 PM Last Post By: Jeff Overcash (...
Mark Williams

Posts: 17
Registered: 10/23/16
Controls.res not found  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 27, 2016 4:09 PM
I have been advised to post this message in this group rather than IDE.

I'm New to Berlin. Thought the "Delete Invalid Paths" function on Library Paths looked nifty, but more fool me!

It seems to have deleted a critical path and now every time I try to compile I get "File not ofund: 'Controls.res'".

I have googled for a solution. Some solutions say you need to add "vcl" before the controls unit in the uses clause. It's already there.

Others say add "$(BDSLIB)\$(PLATFORM)\$(CONFIG)" to your library path. I tried, but that did nothing.

Other suggestions were to uninstall Delphi and re-install. Apart from the fact that the person to whom this was suggestewd got no joy from this, it seems a bit drastic.

Is there a simple answer for this problem?

And why doesn't the "Delete Invalid Paths" button come with a government health warning?

Thanks
Ken Randall

Posts: 130
Registered: 11/12/99
Re: Controls.res not found
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 28, 2016 1:12 AM   in response to: Mark Williams in response to: Mark Williams
Mark Williams wrote:

I have been advised to post this message in this group rather than
IDE.

I'm New to Berlin. Thought the "Delete Invalid Paths" function on
Library Paths looked nifty, but more fool me!

Just be aware that not all paths have a $(PLATFORM) for 32 bit such as
$(BDSCOMMONDIR)\Dcp but they do for 64 bit.

My Berlin 10.1 32 bit paths are:

$(BDSLIB)\$(Platform)\release
$(BDSUSERDIR)\Imports
$(BDS)\Imports
$(BDSCOMMONDIR)\Dcp
Mark Williams

Posts: 17
Registered: 10/23/16
Re: Controls.res not found  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 28, 2016 1:23 AM   in response to: Ken Randall in response to: Ken Randall
Thanks Ken.

But for the moment, what do I have to restore to the Library Path so I can compile again?
Ken Randall

Posts: 130
Registered: 11/12/99
Re: Controls.res not found  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 28, 2016 1:41 AM   in response to: Mark Williams in response to: Mark Williams
Mark Williams wrote:

Thanks Ken.

But for the moment, what do I have to restore to the Library Path so
I can compile again?

Make sure that you have the paths I listed. Controls.res is in
$(BDSLIB)\$(Platform)\release
Mark Williams

Posts: 17
Registered: 10/23/16
Re: Controls.res not found  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 28, 2016 3:08 AM   in response to: Ken Randall in response to: Ken Randall
Make sure that you have the paths I listed. Controls.res is in
$(BDSLIB)\$(Platform)\release

My apologies. I missed the list of paths! Must be working too late. Many thanks
Fergus Dixon

Posts: 16
Registered: 5/10/07
Re: Controls.res not found  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 30, 2017 7:57 PM   in response to: Mark Williams in response to: Mark Williams
I also have a problem now where Control.res is not found.

In Library Paths, I have the following but the 2nd, 4th and 6th items are grayed out. ANy help woudl be appreciated

$(BDSLIB)\$(Platform)\release
$(BDSUSERDIR)\Imports
$(BDS)\Imports
$(BDSCOMMONDIR)\Dcp\$(Platform)
$(BDS)\include
$(BDSLIB)\$(PLATFORM)\$(CONFIG)
Jeff Overcash (...

Posts: 1,529
Registered: 9/23/99
Re: Controls.res not found  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 31, 2017 10:04 AM   in response to: Fergus Dixon in response to: Fergus Dixon
Fergus Dixon wrote:
I also have a problem now where Control.res is not found.

In Library Paths, I have the following but the 2nd, 4th and 6th items are grayed out. ANy help woudl be appreciated

$(BDSLIB)\$(Platform)\release
$(BDSUSERDIR)\Imports
$(BDS)\Imports
$(BDSCOMMONDIR)\Dcp\$(Platform)
$(BDS)\include
$(BDSLIB)\$(PLATFORM)\$(CONFIG)

The grayed outs are good and must be there. Even though you are looking at the
paths for a specific platform, the dialog's delete invalid paths is too stupid
to not replace $(platform) with the platform you are viewing (major bug in this
from day one it has never worked).

Technically your first and last are the same. $(CONFIG) maps to Release on
release builds. Mine looks like

$(BDSLIB)\$(Platform)\release;
$(BDSUSERDIR)\Imports;
$(BDS)\Imports;
$(BDSCOMMONDIR)\Dcp\$(Platform);
$(BDS)\include;

Go into $(BDSLIB)\$(Platform)\release and verify the res file is actually there.
Also look in the debug. Normally it is not in the debug folder, it should be
in the release. The compiler (linker?) switches out debug folder for release
folder when looking for .res files. So I see the .res files in my release
folders, but none in the debug ones and that is normal.

Does this happen on new project or old? If only on old look at the porject's
search paths for pointing to older installations.

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)
Fergus Dixon

Posts: 16
Registered: 5/10/07
Re: Controls.res not found  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 31, 2017 6:01 PM   in response to: Mark Williams in response to: Mark Williams
Hi,Jeff, yes the file is definitely there in the win32\release folder, but not in the debug folder.

Can you suggest anything else to check. I am also talking to someone from Embarcadero but not having much luck.

This happens on all versions of Delphi and started around a month ago after a few windows updates.

It happens on new projects. Thanks
Fergus Dixon

Posts: 16
Registered: 5/10/07
Re: Controls.res not found  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 1, 2017 3:39 AM   in response to: Mark Williams in response to: Mark Williams
Also, I just made a simple batch file test.bat which just contained echo hello and then dropped this is the lib\win32\release folder and typed in test from the cmd window from another folder and it worked ok.

Something else I noticed was that in the Tools - Options - Delphi options , the os is always set to win64. Possibly my Gm which is definitely win32 may think it is win64.
Fergus Dixon

Posts: 16
Registered: 5/10/07
Re: Controls.res not found  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 2, 2017 2:55 PM   in response to: Mark Williams in response to: Mark Williams
added C:\Program Files\Embarcadero\Studio\19.0\lib\win32\release to the Project > Options search path. All good now
Jeff Overcash (...

Posts: 1,529
Registered: 9/23/99
Re: Controls.res not found  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 2, 2017 6:01 PM   in response to: Fergus Dixon in response to: Fergus Dixon
Fergus Dixon wrote:
added C:\Program Files\Embarcadero\Studio\19.0\lib\win32\release to the Project > Options search path. All good now

Ok then your global library path is wrong. Some PC manufacturers (like HP) will
create a global PLATFORM variable that is unnecessary. Look and see if you have
a OS wide PLATFORM variable. I suspect you do.

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02