[Delphi] DCC Error
15/10/2021
0
Estou desenvolvendo um mine sistema e apresentou esse erro não sei a que se refere!
[DCC Error] acShellCtrls.pas(479): E2170 Cannot override a non-virtual method
[DCC Error] acShellCtrls.pas(2467): E2010 Incompatible types: 'TComboBoxStyle' and 'TComboBoxExStyle'
[DCC Error] acShellCtrls.pas(2673): E2010 Incompatible types: 'TComboExItem' and 'TCollectionItem'
[DCC Error] acShellCtrls.pas(2807): E2010 Incompatible types: 'TComboExItem' and 'TCollectionItem'
[DCC Error] acShellCtrls.pas(2998): E2003 Undeclared identifier: 'NewStyleItems'
[DCC Error] acShellCtrls.pas(479): E2170 Cannot override a non-virtual method
[DCC Error] acShellCtrls.pas(2467): E2010 Incompatible types: 'TComboBoxStyle' and 'TComboBoxExStyle'
[DCC Error] acShellCtrls.pas(2673): E2010 Incompatible types: 'TComboExItem' and 'TCollectionItem'
[DCC Error] acShellCtrls.pas(2807): E2010 Incompatible types: 'TComboExItem' and 'TCollectionItem'
[DCC Error] acShellCtrls.pas(2998): E2003 Undeclared identifier: 'NewStyleItems'
Dimas Alexandre
Curtir tópico
+ 0
Responder
Posts
15/10/2021
Emerson Nascimento
a unit acShellCtrls.pas está herdando componentes e manipulando os métodos desses componentes.
[DCC Error] acShellCtrls.pas(479): E2170 Cannot override a non-virtual method
indica que não é possível sobrescrever um método não viirtual. a solução é sobrecarregar o método herdeiro (no lugar de override, usar overload) ou transformar o método ancrestral num método virtual (se possível).
[DCC Error] acShellCtrls.pas(2467): E2010 Incompatible types: 'TComboBoxStyle' and 'TComboBoxExStyle'
[DCC Error] acShellCtrls.pas(2673): E2010 Incompatible types: 'TComboExItem' and 'TCollectionItem'
[DCC Error] acShellCtrls.pas(2807): E2010 Incompatible types: 'TComboExItem' and 'TCollectionItem'
o método/evento/função/procedure está recebendo ou retornando um tipo diferente do esperado.
[DCC Error] acShellCtrls.pas(2998): E2003 Undeclared identifier: 'NewStyleItems'
tentando trabalhar com um identificador não declarado. normalmente ocorre quando tenta trabalhar com algo não declarado em var ou const.
pra dar uma resposta mais precisa é preciso ter o código das linhas citadas como geradoras dos erros.
linhas 479, 2467, 2673, 2807 e 2998.
[DCC Error] acShellCtrls.pas(479): E2170 Cannot override a non-virtual method
indica que não é possível sobrescrever um método não viirtual. a solução é sobrecarregar o método herdeiro (no lugar de override, usar overload) ou transformar o método ancrestral num método virtual (se possível).
[DCC Error] acShellCtrls.pas(2467): E2010 Incompatible types: 'TComboBoxStyle' and 'TComboBoxExStyle'
[DCC Error] acShellCtrls.pas(2673): E2010 Incompatible types: 'TComboExItem' and 'TCollectionItem'
[DCC Error] acShellCtrls.pas(2807): E2010 Incompatible types: 'TComboExItem' and 'TCollectionItem'
o método/evento/função/procedure está recebendo ou retornando um tipo diferente do esperado.
[DCC Error] acShellCtrls.pas(2998): E2003 Undeclared identifier: 'NewStyleItems'
tentando trabalhar com um identificador não declarado. normalmente ocorre quando tenta trabalhar com algo não declarado em var ou const.
pra dar uma resposta mais precisa é preciso ter o código das linhas citadas como geradoras dos erros.
linhas 479, 2467, 2673, 2807 e 2998.
Responder
Clique aqui para fazer login e interagir na Comunidade :)