here is my code :
#pragma region public Property : ImageSortAscend ant
// Allow user to select the image which will be displayed for column
sorted ascendantly
[System::Compone ntModel::Defaul tPropertyAttrib ute (nullptr)]
property Bitmap^ ImageSortAscend ant
{
Bitmap^ get()
{
return m_ImageSortA;
}
void set(System::Dra wing::Bitmap^ value)
{
m_ImageSortA = value;
}
}
#pragma endregion
but when i try to compile, i have the following error :
...\RAF_ListVie w.h(177) : error C3115:
'System::Compon entModel::Defau ltPropertyAttri bute': this attribute is
not allowed on 'RAF_ListView:: AR_ListView::Im ageSortAscendan t'
how could it be possible ?
thanks,
Al.
--== Alain ==-- wrote:
Hi,
I would like to define the default value of my property.
My property is from type Bitmap^, therefore i was thinking to do :
[DefaultValueAtt ribute(nullptr)]
but i does not work.
how is it possible to define this property to no pointer ?
thx.
ALain