Watch, Follow, &
Connect with Us

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


Welcome, Guest
Guest Settings
Help

Thread: Delphi XE2 Update 3 - Helloworld compilation problem


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 14 - Last Post: Apr 6, 2017 6:02 PM Last Post By: Peter Edwards
Fabrizio Cavadini

Posts: 2
Registered: 1/15/12
Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 18, 2011 11:32 PM
Hi,
I have downloaded "Delphi XE2 and C++Builder XE2 ISO (includes Update 3)" and I have installded it on my PC.

After a succesfully installation I have rebooted my PC. After reebot I have created a new vcl forms application and I have put on main form one label with "HelloWorld" caption.

During compilation I have this error:

[DCC Error] E1026 File not found: 'Controls.res'

What can I do?

Thanks
Fabrizio
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 19, 2011 10:26 AM   in response to: Fabrizio Cavadini in response to: Fabrizio Cavadini
Fabrizio wrote:

During compilation I have this error:

[DCC Error] E1026 File not found: 'Controls.res'

What can I do?

Starting in XE2, all of Embarcadero's units (other than the "System" unit)
have namespaces attached to them to help differentiate which units belong
to VCL, FireMonkey, Windows, Mac, Posix, etc.

You have two choices:

1) change your 'uses' clause to specify "Vcl.Controls" explicitally instead
of "Controls" generically.

2) go into "Project > Options > Delphi Compiler" and make sure "Vcl" is included
in the "Unit Scope Names" list, and then leave your 'uses' clause specifying
"Controls" generically.

--
Remy Lebeau (TeamB)
Richard Dufour

Posts: 2
Registered: 4/11/11
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 30, 2011 4:50 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
So what if the 2 suggested "fixes" are in place (I have Vcl.xyz AND "Vcl" is included in my "Unit Scope Names" list). But still no go. Straight out of the box, I can't even compile a simple Hello World with a button that doesn't have any code whatsoever.

Kind of a bad start as far as I'm concerned.

Would you have other suggestions Remy?

Thanks in advance,
Richard

Remy Lebeau (TeamB) wrote:
Fabrizio wrote:

During compilation I have this error:

[DCC Error] E1026 File not found: 'Controls.res'

What can I do?

Starting in XE2, all of Embarcadero's units (other than the "System" unit)
have namespaces attached to them to help differentiate which units belong
to VCL, FireMonkey, Windows, Mac, Posix, etc.

You have two choices:

1) change your 'uses' clause to specify "Vcl.Controls" explicitally instead
of "Controls" generically.

2) go into "Project > Options > Delphi Compiler" and make sure "Vcl" is included
in the "Unit Scope Names" list, and then leave your 'uses' clause specifying
"Controls" generically.

--
Remy Lebeau (TeamB)
Pieter Zijlstra

Posts: 7
Registered: 5/18/01
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 30, 2011 6:00 PM   in response to: Richard Dufour in response to: Richard Dufour
Richard Dufour wrote:

So what if the 2 suggested "fixes" are in place (I have Vcl.xyz AND
"Vcl" is included in my "Unit Scope Names" list). But still no go.
Straight out of the box, I can't even compile a simple Hello World
with a button that doesn't have any code whatsoever.

Kind of a bad start as far as I'm concerned.

I don't know why you get this error, are the following files available
on your system?
.\RAD Studio\9.0\lib\win32\release\controls.res
.\RAD Studio\9.0\lib\win64\release\Controls.res

If not, try to run the installer again and do a Modify/Repair.

--
Pieter

"So I was in my car, and I was driving along, and my boss rang up
and he said 'You've been promoted'. And I swerved.
And then he rang up a second time and said 'You've been promoted
again'. And I swerved again.
He rang up a third time and said 'You're managing director.'
And I went into a tree.
And a policeman came up and said 'What happened to you?'
And I Said 'I careered off the road.'" -- Tommy Cooper
Richard Dufour

Posts: 2
Registered: 4/11/11
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 30, 2011 7:33 PM   in response to: Pieter Zijlstra in response to: Pieter Zijlstra
Found a solution to my problem (thanks to a post I found on Google from Dr. Bob, sorry I didn't save the link). Just posting here in case someone else encounters the same issue.

Basically, I had to check my environment variables and delete a value.

1. On Windows 7, right click on my computer
2. Click Properties
3. Select the "Advanced" tab
4. Click on "Environment Variables" button at the bottom of the dialog.
5. In the lower section (System Variables), you will most likely find a variable called "Platform" which has the value of '*AnyCPU*'
6. Delete it.

Et voila!.

You'd think it would just work on any Windows machine straight out of the box, but it is what it is.
This was actually causing Delphi XE2 and FireMonkey from being able to compile anything.

Now if I can just get the help file to install properly once and for all, I'll be a happy camper.

Richard


Pieter Zijlstra wrote:
Richard Dufour wrote:

So what if the 2 suggested "fixes" are in place (I have Vcl.xyz AND
"Vcl" is included in my "Unit Scope Names" list). But still no go.
Straight out of the box, I can't even compile a simple Hello World
with a button that doesn't have any code whatsoever.

Kind of a bad start as far as I'm concerned.

I don't know why you get this error, are the following files available
on your system?
.\RAD Studio\9.0\lib\win32\release\controls.res
.\RAD Studio\9.0\lib\win64\release\Controls.res

If not, try to run the installer again and do a Modify/Repair.

--
Pieter

"So I was in my car, and I was driving along, and my boss rang up
and he said 'You've been promoted'. And I swerved.
And then he rang up a second time and said 'You've been promoted
again'. And I swerved again.
He rang up a third time and said 'You're managing director.'
And I went into a tree.
And a policeman came up and said 'What happened to you?'
And I Said 'I careered off the road.'" -- Tommy Cooper
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 1, 2012 9:30 PM   in response to: Richard Dufour in response to: Richard Dufour
Richard wrote:

5. In the lower section (System Variables), you will most likely find
a variable called "Platform" which has the value of '*AnyCPU*'

That is a known problem on some machines. Some PC/laptop manufacturers preinstall
that environment variable into their systems.

--
Remy Lebeau (TeamB)
Lars Ljungberg

Posts: 1
Registered: 6/4/06
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 23, 2014 11:56 PM   in response to: Richard Dufour in response to: Richard Dufour
Richard Dufour wrote:
Found a solution to my problem (thanks to a post I found on Google from Dr. Bob, sorry I didn't save the link). Just posting here in case someone else encounters the same issue.

Basically, I had to check my environment variables and delete a value.

1. On Windows 7, right click on my computer
2. Click Properties
3. Select the "Advanced" tab
4. Click on "Environment Variables" button at the bottom of the dialog.
5. In the lower section (System Variables), you will most likely find a variable called "Platform" which has the value of '*AnyCPU*'
6. Delete it.

Et voila!.

You'd think it would just work on any Windows machine straight out of the box, but it is what it is.
This was actually causing Delphi XE2 and FireMonkey from being able to compile anything.

Now if I can just get the help file to install properly once and for all, I'll be a happy camper.

Richard


Thanks alot for this. It saved my day!
Fabrizio Cavadini

Posts: 2
Registered: 1/15/12
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 19, 2011 11:08 PM   in response to: Fabrizio Cavadini in response to: Fabrizio Cavadini
Hello,
I have verified,
during the creation of one new project, in main form I have VCL.Controls in my uses and I have VCL in unit scope names.

But when I run the project I receive the error [DCC Error] E1026 File not found: 'Controls.res'

Thank in advice
Fabrizio

Fabrizio Cavadini wrote:
Hi,
I have downloaded "Delphi XE2 and C++Builder XE2 ISO (includes Update 3)" and I have installded it on my PC.

After a succesfully installation I have rebooted my PC. After reebot I have created a new vcl forms application and I have put on main form one label with "HelloWorld" caption.

During compilation I have this error:

[DCC Error] E1026 File not found: 'Controls.res'

What can I do?

Thanks
Fabrizio
Fahri ÇAKAR

Posts: 1
Registered: 9/25/04
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 16, 2012 4:30 AM   in response to: Fabrizio Cavadini in response to: Fabrizio Cavadini
Check your Delphi Options.
Tools -> Options -> Delphi Options -> Library -> Library Path

and

Tools -> Options -> Delphi Options -> Library -> Browsing Path

Example:
$(BDS)\lib\$(Platform)\release;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDSCOMMONDIR)\Dcp\$(Platform);$(BDS)\include;C:\Program Files\FastReports\LibD16;C:\Program Files\Raize\CS5\Lib\RS-XE2\$(Platform);$(BDS)\fc;$(BDS)\Quickrep505;

I am using Delphi XE2 Update 4.
No any problem; life is very beatiful :)
C.H. Chiang

Posts: 79
Registered: 12/1/00
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 14, 2014 10:23 PM   in response to: Fahri ÇAKAR in response to: Fahri ÇAKAR
Thanks Fahri ÇAKAR,

I think Embarcadero need to fix the function of "delete invalid path"
If someone like me to keep clean and press the button, all the important path "$(..." would be deleted.
And no way to find out default value.

EMBARCADERO ))) DON'T LET IT BEING DELETED !!!
**********************************************************

Check your Delphi Options.
Tools -> Options -> Delphi Options -> Library -> Library Path
and
Tools -> Options -> Delphi Options -> Library -> Browsing Path
Example:
$(BDS)\lib\$(Platform)\release;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDSCOMMONDIR)\Dcp\$(Platform);$(BDS)\include;C:\Program Files\FastReports\LibD16;C:\Program Files\Raize\CS5\Lib\RS-XE2\$(Platform);$(BDS)\fc;$(BDS)\Quickrep505;
C.H. Chiang

Posts: 79
Registered: 12/1/00
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 14, 2014 10:27 PM   in response to: C.H. Chiang in response to: C.H. Chiang
AT LEAST, PUBLISH A LIST ON WEB TO LET USER KNOW IT CANNOT PRESS.
... AND WHATS THE DEFAULT, PLEASE !
Borja Serrano

Posts: 172
Registered: 1/10/13
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 11, 2014 7:15 AM   in response to: C.H. Chiang in response to: C.H. Chiang
You can always return to the default values using the -r switch:

http://support.embarcadero.com/article/42597

C.H. Chiang wrote:
AT LEAST, PUBLISH A LIST ON WEB TO LET USER KNOW IT CANNOT PRESS.
... AND WHATS THE DEFAULT, PLEASE !

--
Borja Serrano
Embarcadero Technical Support Engineer
Ettore Bottega

Posts: 1
Registered: 3/2/13
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 22, 2014 12:38 AM   in response to: C.H. Chiang in response to: C.H. Chiang
I totally quote this post and agree with the proposal. It is still an issue on XE7
Thank you for having pinpointed the problem: this post helped me not to re-install delphi entirely.


C.H. Chiang wrote:
Thanks Fahri ÇAKAR,

I think Embarcadero need to fix the function of "delete invalid path"
If someone like me to keep clean and press the button, all the important path "$(..." would be deleted.
And no way to find out default value.

EMBARCADERO ))) DON'T LET IT BEING DELETED !!!
**********************************************************

Check your Delphi Options.
Tools -> Options -> Delphi Options -> Library -> Library Path
and
Tools -> Options -> Delphi Options -> Library -> Browsing Path
Example:
$(BDS)\lib\$(Platform)\release;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDSCOMMONDIR)\Dcp\$(Platform);$(BDS)\include;C:\Program Files\FastReports\LibD16;C:\Program Files\Raize\CS5\Lib\RS-XE2\$(Platform);$(BDS)\fc;$(BDS)\Quickrep505;
Gerald Clancy

Posts: 7
Registered: 1/4/02
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 11, 2016 7:10 PM   in response to: Fabrizio Cavadini in response to: Fabrizio Cavadini
I know it's a late response but my thanks to Remy for his solution. Adding Vcl to unit scope did the trick. Thank you.
Peter Edwards

Posts: 1
Registered: 8/18/03
Re: Delphi XE2 Update 3 - Helloworld compilation problem  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 6, 2017 6:02 PM   in response to: Fabrizio Cavadini in response to: Fabrizio Cavadini
Unbelievable - I have just done exactly the same in Tokyo - deleted invalid paths and got the same result.

I can not believe this is possible - wasted 2 hours of my time - Not impressed Team Embercadero

**Thanks very much to the writer of this issue**

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02