Component installing and component rebuilding
Hello all,
I asked the following in the cppbuilder.vcl forum however I was directed
to this forum concerning questions like this:
I've got a component install problem.
When I download a nice VCL from a website and install it in C++Builder
then the component appears with the default Borland bitmap (in fact it
uses the default dclusr35.res).
Just as I saw in C++Builder in 21 days this is determined by the USERES
statement in the project which is default dclusr35.res. However the same
book is also telling me that C++Builder automatically finds the .dcr
resource files for the bitmap. Therefore I should guess that when I
install a component which is downloaded from the web, and which includes
a .dcr file, that it automatically detects this bitmap. When I install
such a component then I copy all the files to the lib\obj directory.
So when copy all the necessary files to the \obj directory I should
asume that C++Builder should recognize the new bitmap. It doesn't.
When I manually edit the dlcusr35.cpp file and delete the USERES default
line then it also doesn't recognize it.
I also tried manually editing the dlcusr35.cpp and pasted the
USEREF="My_new_icon.dcr".
After lots of puzzling I finally got it working.
Is there a simple way to install the component with the bitmap which is
included (.dcr) in the distributed VCL file?
It also seemed to be at a moment that there is a difference when
installing a VCL which is written as .cpp or as .pas (referring to the
bitmap which is automatically found).
I also found out that if you try to rebuild a component, which I
sometimes have to do when I found out that the bitmap wasn't correct,
that some warnings and hints are generated which do not occur when you
install the component for the first time. Can anybody help me with this?
Does anybody have a explanation for this?
Henk.