CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CustomSort() Metod in TTreeView
Hi *.* !
I try to use CustomSort() metod in TTreeViev.
I take some code from example in help about this metod,
but it does not work!!!
Maybe i stupid - but please help me...
In this case i got compiler error "Cannot convert...":
....
int __fastcall CompareFunc(TTreeNode *Node1,TTreeNode *Node2, int Reverse)
{
int GT = AnsiStrIComp(Node1->Text.c_str(), Node2->Text.c_str());
if (Reverse)
return -GT;
return GT;
}
....
TreeView1->CustomSort((Commctrl::TTVCompare)CompareFunc, 0);
....
In this case i got linker error "Unresolved ... in main.obj":
int __stdcall __export CompareFunc(long,long,long)
{
return 0;
}
....
TreeView1->CustomSort(CompareFunc, 0);
....
I really don't know what to do!!!
HELP!!!!!!!!!!!!!
Best regards from RUSSIA->Vladivostok, =;-)
ARG mail me to: arg.mail@usa.net
[ Slave new world ... ]
W Komornicki's Home Page |
Main Index |
Thread Index