Page 1 of 1

Richview.obj ? Install on XE2..

Posted: Wed Dec 28, 2011 3:03 pm
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

Posted: Wed Dec 28, 2011 6:34 pm
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).

Posted: Thu Dec 29, 2011 2:43 pm
by Bumeranghc
Works fine if I add manually. But what about automatic way?

Posted: Thu Dec 29, 2011 3:11 pm
by Bumeranghc
Works fine if I try to compile all c++ builder project files for RichView package.

Posted: Fri Dec 30, 2011 12:39 pm
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

Posted: Fri Dec 30, 2011 2:20 pm
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.

Posted: Fri Dec 30, 2011 6:04 pm
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.