CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BCB3] Adding Custom Components to the Palette



>> Has anyone had any luck adding there old components to the
>> BCB3 palette?  I managed to add a component, but I can't 
>> get it to recognize the palette icon in my DCR file.
>
>You need to add the following line to your CPP file:
>
>#pragma resource "*.res"
>or 
>#pragma resource "*.dcr"
>
>I've only dealt with *.res files, but I assume the *.dcr file would 
>work the same way.

Ok.  I've been beta testing some Delphi components in BCB3
for Brad Stowers.  He says that D3 adds the equivalent of
#pragma resource "*.dcr" (which is {$R *.dcr}) to the package
source file.  If it is also in the component source, it generates
duplicate resource errors.

He also says that BCB1 automatically picked up the *.dcr file
when installing the component.

So what gives?  Can anyone confirm D3 or BCB1's behavior?

Thanks,

Jon->Robertson();




W Komornicki's Home Page | Main Index | Thread Index