Version 17.6 and Addict 4

General TRichView support forum. Please post your questions here
Post Reply
NGP
Posts: 4
Joined: Thu Apr 19, 2018 1:40 pm

Version 17.6 and Addict 4

Post by NGP » Mon Feb 04, 2019 4:39 am

I have installed Addict 4 and then TRichEdit 17.6 using TRichViewSetup-Pre18.exe but the installed just skips the Addict 4 parser.

How can I install the required parser?

I've tried reinstalling both Addict and then TRichEdit after completely uninstalling both but still no success?

Any suggestions on what to try next?

giovani.erthal
Posts: 4
Joined: Thu Dec 27, 2018 1:48 am

Re: Version 17.6 and Addict 4

Post by giovani.erthal » Mon Feb 04, 2019 11:24 am

Maybe that might help.
Sergey Tkachenko wrote:
Tue Jul 24, 2018 2:33 pm
TRVAddictSpell31 and TRVAAddictSpellInterface components are registered by TRichView installer if it can find (and if it can use) Addict4.

But unfortunately, there is a problem:
- all our packages are "never-build" packages;
- the Addict packages are "always-build" packages
"Never-build" packages cannot use "always-build" packages.

To use Addict with TRichView, you have to make Addict packages "never-build" and recompile them.
To do it, open the Addict package (for example, for Delphi 10 Berlin, the package is <Addict Dir>\Source\d24\addict4_d24.dpk). Right click the package name in the Project Manager (usually located at the right side of the screen), choose "Options..." in the menu. Go to the page "Description". Change "Build control" = "Explicit rebuild". "OK". Re-install the package (right click the package name, "Install").

Make sure that you do not have old version of the package compilation results (<package name>.bpl and <package name>.dcp) files. If you have several copies BPL and DCP files of Addict packages, delete the old versions.

Then re-install TRichView in Delphi. To do it, you can use "Install TRichView in Delphi IDE" shortcut in the Windows Start Menu. If everything is correct, the installer will write "Installed" instead of "Skipped" next to "Addict 4 parser" item, and you will be able to use TRVAddictSpell31 and TRVAAddictSpellInterface components.

NGP
Posts: 4
Joined: Thu Apr 19, 2018 1:40 pm

Re: Version 17.6 and Addict 4

Post by NGP » Mon Feb 04, 2019 12:07 pm

Following those instructions helped and let me install the Addict 4 parser.

However it is only 32 bit and the program I'm developing is 64 bit.

Is there some other step I need to follow to include a 64 bit parser?

Thank you.

Sergey Tkachenko
Site Admin
Posts: 14558
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Version 17.6 and Addict 4

Post by Sergey Tkachenko » Mon Feb 04, 2019 8:43 pm

Try modifying TRichViewFullDelphi.iide (it must be in Setup folder of TRichView installation)

In this file, find declarations related to Addict parser:

Code: Select all

Package10=Addict3_RichView_
Trial10=0
Path10=ThirdParty\Addict\Source
Descr10=TRichView parser for Addict 4 for %s
Title10=Addict 4 parser
CheckUnit10=ad3RichView
Optional10=1
32bit10=1
Delete the line 32bit10=1
Then reinstall TRichView (using "Install TRichView in IDE" shortcut of Windows Start menu).

Very probably, it may fail because of the same reason as 32-bit compilation.
In this case, you need to recompile the Addict package in 64-bit mode and try again.

--
I do not remember why the setup installs the Addict wrapper only in 32-bit, I'll recheck it after I finish the current work.

NGP
Posts: 4
Joined: Thu Apr 19, 2018 1:40 pm

Re: Version 17.6 and Addict 4

Post by NGP » Mon Feb 04, 2019 10:18 pm

I made that change in the TRichViewFullDelphi.iide file, reinstalled Addict and confirmed that the 64 bit version was present, then reinstalled TRichView using the "Install TRichView in IDE" shortcut.

The parser installed but still only as 32 bit.

Before reinstalling Addict I also cleaned out any Addict files that might have been in old directories.

I'll await your checking of the wrapper for 32 bit installation only.

Thank you

Sergey Tkachenko
Site Admin
Posts: 14558
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Version 17.6 and Addict 4

Post by Sergey Tkachenko » Mon Feb 04, 2019 10:38 pm

You can open the Addict parser package (for example, if you use Delphi XE8, <TRichView Dir>\ThirdParty\Addict\Source\Addict3_RichView_DXE8.dproj, and try to compile it in 64 Windows platform.

Error messages may help to find the problem.

Sergey Tkachenko
Site Admin
Posts: 14558
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Version 17.6 and Addict 4

Post by Sergey Tkachenko » Mon Feb 04, 2019 10:41 pm

If, after removing the line

Code: Select all

32bit10=1
the setup installs everything without warnings, this means that the parser is actually installed in 64-bit.

But the components were not marked as 64-bit compatible (it require source code modification)
But it still possible to use them in 64-bit projects.
You can switch your project to 32-bit platform, place the components on the form, then switch back to 64 bit.

NGP
Posts: 4
Joined: Thu Apr 19, 2018 1:40 pm

Re: Version 17.6 and Addict 4

Post by NGP » Mon Feb 04, 2019 11:51 pm

That solved the problem. In 32 bit the component could eb added and once I switched back to 64 bit the program compiled and the spellchecking is working.

Thank you for your help.

MiltonG
Posts: 1
Joined: Wed Mar 13, 2019 9:39 am

Re: Version 17.6 and Addict 4

Post by MiltonG » Thu Mar 14, 2019 2:15 pm

So it's safe to be switching between 32-bit and 64-bit in the middle of a project like that, Sergey?

Sergey Tkachenko
Site Admin
Posts: 14558
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Version 17.6 and Addict 4

Post by Sergey Tkachenko » Thu Mar 14, 2019 2:37 pm

This is a normal way of switching between 64 and 32-bit platforms for a project.
It's usually safe, but as you can see, it's very simple to get round the "not compatible with 64-bit" mark of components. So you must be sure that the components in the project are 64-bit compatible.

Post Reply