Mega Search
23.2 Million


Sign Up

Make a donation  
Cant't compile D6 application with D2007: E2037 error  
News Group: borland.public.delphi.ide.general

Hi,

I've just updated D6 to D2007 but when I compile a project I get this error:

[DCC Error] DBLocal.pas(50): E2037 Declaration of 'SetCommandText' differs 
from previous declaration.

I'm getting too much trouble when compiling D6 projects with D2007. Is there 
any "Migrating Applications From D6 to D2007 Tips & Tricks" or something 
like this.

Any help will be appreciated.

Nando. 



Vote for best question.
Score: 0  # Vote:  0
Date Posted: 7-Jan-2008, at 12:30 PM EST
From: Nando
 
Re: Cant't compile D6 application with D2007: E2037 error  
News Group: borland.public.delphi.ide.general
"Peter Below (TeamB)"  escribió en el mensaje 
news:xn0fkwvqy1p8uk004@newsgroups.borland.com...
> Nando wrote:
>
>> Hi,
>>
>> I've just updated D6 to D2007 but when I compile a project I get this
>> error:
>>
>> [DCC Error] DBLocal.pas(50): E2037 Declaration of 'SetCommandText'
>> differs from previous declaration.
>>
>> I'm getting too much trouble when compiling D6 projects with D2007.
>> Is there any "Migrating Applications From D6 to D2007 Tips & Tricks"
>> or something like this.
>
> You usually get these problems when there are references to units from
> the other Delphi version in your project. These are typically
> references with full or relative path in the dpr files USES clause, or
> path entries in a DSK or CFG file for the project. If you move a
> project to a newer Delphi version it is best to rename or delete all
> non-source files (anything other than pas, dfm, dpr, dpk, inc, rc, res
> files basically). Of those only the dpr and dpk files may contain path
> references. The exception to this are include statements, you have to
> trawl you source files for those manually (just do a search in files
> for {$I).

Thank you Peter for your posting.

I did what you tell and now is Ok.

I also found that it appears that several components where moved from 
DBLocal.Pas and DBLocalI.Pas to different units, so when I remove those 
units from de uses clause the DCC Error E2037 does not appear any more.

Nando.

> -- 
> Peter Below (TeamB)
> Don't be a vampire (http://slash7.com/pages/vampires),
> use the newsgroup archives :
> http://www.tamaracka.com/search.htm
> http://groups.google.com 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 8-Jan-2008, at 3:00 PM EST
From: Nando
 
Re: Cant't compile D6 application with D2007: E2037 error  
News Group: borland.public.delphi.ide.general
Nando wrote:

> Hi,
> 
> I've just updated D6 to D2007 but when I compile a project I get this
> error:
> 
> [DCC Error] DBLocal.pas(50): E2037 Declaration of 'SetCommandText'
> differs from previous declaration.
> 
> I'm getting too much trouble when compiling D6 projects with D2007.
> Is there any "Migrating Applications From D6 to D2007 Tips & Tricks"
> or something like this.

You usually get these problems when there are references to units from
the other Delphi version in your project. These are typically
references with full or relative path in the dpr files USES clause, or
path entries in a DSK or CFG file for the project. If you move a
project to a newer Delphi version it is best to rename or delete all
non-source files (anything other than pas, dfm, dpr, dpk, inc, rc, res
files basically). Of those only the dpr and dpk files may contain path
references. The exception to this are include statements, you have to
trawl you source files for those manually (just do a search in files
for {$I).

-- 
Peter Below (TeamB)  
Don't be a vampire (http://slash7.com/pages/vampires), 
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 7-Jan-2008, at 12:03 PM EST
From: Peter Below (TeamB)