Richview.obj ? Install on XE2..

General TRichView support forum. Please post your questions here
Post Reply
JCC
Posts: 3
Joined: Wed Aug 23, 2006 10:01 am

Richview.obj ? Install on XE2..

Post by JCC »

Hi,
I'm moving my stuff to XE2 and have installed Richview using the delphi projects for XE2 in RAD Studio. I checked that the compilation will generate all C++Builder files for Release and Debug environments.
Did a Clean->Build->Install without errors.

Problem now: When I create a new C++Builder VCL Form app and drop a RichView on it, the compiler wants RichView.obj which is nowhere to be found on my system. Now, in the install text it is mentioned that the install can only be either for Delphi OR C++Builder.
Does this mean that the above approach does not work? ( I thought this was comatible and would run any Delphi component in a C++Builder environment..)

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

Post by Sergey Tkachenko »

When you install RVPkgDXE2.dproj, OBJ files are not generated separately, but they are assembled in RVPkgDXE2.lib. This library is created in <Common Documents>\RAD Studio\9.0\Dcp\ folder.

Normally, C++Builder adds a reference to the library automatically to the project, if you use TRichView components.
If it does not, the only way is to do it manually. Open the project source (cbproj file) in Notepad, find <LinkPackageStatics> and <AllPackageLibs>, and add RVPkgDXE2.lib there.
(probably this operation is possible in the project options in C++Builder IDE, but I am not sure).
Bumeranghc
Posts: 8
Joined: Fri Apr 29, 2011 11:49 pm

Post by Bumeranghc »

Works fine if I add manually. But what about automatic way?
Bumeranghc
Posts: 8
Joined: Fri Apr 29, 2011 11:49 pm

Post by Bumeranghc »

Works fine if I try to compile all c++ builder project files for RichView package.
JCC
Posts: 3
Joined: Wed Aug 23, 2006 10:01 am

Post by JCC »

Ok, I added the lib to the AllPackages section. This results in a linker error that the RVTABLE.RES and RVSTYLE.RES cannot be found.

So I think these must be added somewhere as well..

I tried to compile the CBuilder version of the component, but this fails on my system:

[BCC32 Error] RVPkgCBXE2.cpp(3): E2209 Unable to open include file 'basepch.h'
[BCC32 Error] RVPkgCBXE2.cpp(9): E2303 Type name expected
[BCC32 Error] RVPkgCBXE2.cpp(9): E2034 Cannot convert 'char const[11]' to 'int'
[BCC32 Error] RVPkgCBXE2.cpp(9): E2293 ) expected
[BCC32 Error] RVPkgCBXE2.cpp(19): E2141 Declaration syntax error

All I did was opening the RVPkgCBEX2 project and BUILD.


I'm a bit confused about which project to target.. I'm assuming that using the Delphi project and compiling it with "generate all C++ files" is the way to go for someone that uses RADStudio with mixed personalities?

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

Post by Sergey Tkachenko »

I recommend using the Delphi package.
C++Builder XE2 has many problems when compiling C++packages (although, may be Update 3 fixed these problems, I did not try yet).

Please send me a sample project, I'll try to see what's wrong.
Sergey Tkachenko
Site Admin
Posts: 17571
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I believe RES-files cannot be found because the path to TRichView files was not included in Tools | Options, Environment Options | C++ Options | Paths and Directories, Library path.
Post Reply