CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [BCB3] Adding Custom Components to the Palette
I've found that I have to make four one line changes in order to install
my native CBuilder1 component into the CBuilder3 component Pallet and I
am documenting these and adding them as a short 'tutorial' at "The Bits"
site. It should be there in a couple of days.
For those who can't wait...
In your .h
Change the line
Class TMyComponent : public TComponent
To
Class PACKAGE TMyComponent : public Tcomponent
In the .cpp file
Change the line
void __fastcall Register()
to
void __fastcall PACKAGE Register()
Add the line #pragma package(smart_init) after your #includes
And finally to find youyr .res file add the line
#pragma resource "*.res"
Applying these changes has worked for my components.
Of course, now I've posted this no-one's going to read my tutorial...
:-(
Alan
W Komornicki's Home Page |
Main Index |
Thread Index