Hello,
In one of my projects, I get
[dcc32 Error] dxRichEdit.Api.Formatting.pas(3664): E2010 Incompatible types: 'TModelStyle' and 'TdxStyleBase' when I add these units to a .pas
,dxRichEdit.NativeApi,
dxRichEdit.Types, dxRichEdit.Options, dxRichEdit.Control,
dxRichEdit.Control.SpellChecker, dxRichEdit.Dialogs.EventArgs,
dxBarBuiltInMenu, dxRichEdit.Platform.Win.Control, dxRichEdit.Control.Core,
dxRichEdit.Html
Once I get this error, no matter what I do I cannot get rid of it. For instance, my project was compiling fine with the units and I added a Indy unit to my file. (IdException.pas). If I remove the IdException.pas, I clean everything dcu, etc. No matter what I do the error still appears.
Hello Pierre,
Would you please provide us with a small test project (with all project files) where the issue is reproduced? We will examine your project settings.
Also, clarify what IDE you use and whether namespaces are set in your project settings. For example, my list of namespaces is the following:
"Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell"
Hello Mikhail,
I knew you were going to ask me for a test project. If it was that easy… I can't send me my whole project, which contains many thousands of lines.
My IDE is 10.3.3 and the list of namespaces is
Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;System;Xml;Data;Datasnap;Web;Soap;Winapi;System.Win;FireDAC.VCLUI
I forgot to mention that a small project will not reproduce the error.
Hum…
For this project, this compiler's option, always cause the error.
<DCC_Inlining>auto</DCC_Inlining>
Setting the option to off or on instead of auto and the project compile correctly.
Hello,
Thank you for the info. We will examine it.