I don't know what you are trying to do here (there a lot of missing information to understand your problem and your code). Anyway, if you need to sort CTime objects, you can use the comparison operators[^], that will probably be much better then trying to do it yourself.
EDIT: by the way, I don't think the solution provided in the article is the correct way to go, but I posted it so that you can see where your problem is. Check some of the comments and you'll find better way to manage it.
Actually that article and the links in the article really helped a lot.
And i solved my problem as said in the article - "The function CListCtrl::SortItems(...) is only usefull if we store a pointer in the 32-bit associated value and we want to sort the items by some value that comes from that pointer. "
And I too first google, if i still didnt find the solution, then i post it as a thread.
Then i guess in this case it might help if you suggest me the keywords you used to search this article. That will be a lot of help in future.
I just used CListCtrl and SortItems. I think I searched on codeproject too (that's why I found the article). So, if you have a problem, you can google for it and search on the CP articles (there is a lot of good stuff here you know ).
Using a Microsoft Spy++, I can identify a "Class Name" of any application.
For example, the class name of Notepad.exe is "Notepad".
At this moment, I want to modify a "Class Name" of some applications.
Is it possible or not? If possible, how can I modify a class name?