Click here to Skip to main content
15,914,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: difference b/w C and C++ Pin
Johnny ²15-Jun-04 4:43
Johnny ²15-Jun-04 4:43 
GeneralRe: difference b/w C and C++ Pin
Henry miller15-Jun-04 5:01
Henry miller15-Jun-04 5:01 
GeneralRe: difference b/w C and C++ Pin
David Crow16-Jun-04 3:03
David Crow16-Jun-04 3:03 
GeneralRe: difference b/w C and C++ Pin
Henry miller16-Jun-04 3:32
Henry miller16-Jun-04 3:32 
QuestionHow to copy ClientDC to Memory Device Context? Pin
JHAKAS14-Jun-04 19:25
JHAKAS14-Jun-04 19:25 
AnswerRe: How to copy ClientDC to Memory Device Context? Pin
Vadim Tabakman14-Jun-04 19:28
Vadim Tabakman14-Jun-04 19:28 
GeneralSorting date with CListCtrl Pin
Mr Bose Dayala14-Jun-04 19:21
Mr Bose Dayala14-Jun-04 19:21 
GeneralRe: Sorting date with CListCtrl Pin
Vadim Tabakman14-Jun-04 19:36
Vadim Tabakman14-Jun-04 19:36 
What do mean by "it doesn't work fine"? Does it not work at all or is it slow and inefficient?

If it's inefficent, maybe store pointers to the COleDateTime in the data address of the items, rather than CString pointers that you need to convert every time you do a sort.

Another option would be that at the time you are inserting items into the listctrl, the dwData(param) could be a
time_t
object. This is just a typedef'd long. That way you don't need to allocate memory for CStrings or COleDateTime objects, and stil do the comparisons.
GeneralRe: Sorting date with CListCtrl Pin
Mr Bose Dayala14-Jun-04 20:00
Mr Bose Dayala14-Jun-04 20:00 
GeneralRe: Sorting date with CListCtrl Pin
Vadim Tabakman14-Jun-04 20:29
Vadim Tabakman14-Jun-04 20:29 
GeneralRe: Sorting date with CListCtrl Pin
David Crow15-Jun-04 2:43
David Crow15-Jun-04 2:43 
GeneralRe: Sorting date with CListCtrl Pin
Mr Bose Dayala15-Jun-04 17:02
Mr Bose Dayala15-Jun-04 17:02 
GeneralRe: Sorting date with CListCtrl Pin
David Crow16-Jun-04 2:46
David Crow16-Jun-04 2:46 
GeneralTraversing the views Pin
Poorniselva14-Jun-04 18:43
Poorniselva14-Jun-04 18:43 
GeneralRe: Traversing the views Pin
Vadim Tabakman14-Jun-04 19:00
Vadim Tabakman14-Jun-04 19:00 
GeneralRe: Traversing the views Pin
Poorniselva14-Jun-04 19:40
Poorniselva14-Jun-04 19:40 
GeneralRe: Traversing the views Pin
V.15-Jun-04 2:23
professionalV.15-Jun-04 2:23 
QuestionHow to get memory info of a process not using PSAPI, thanks Pin
xingworld14-Jun-04 18:40
xingworld14-Jun-04 18:40 
AnswerRe: How to get memory info of a process not using PSAPI, thanks Pin
David Crow15-Jun-04 2:46
David Crow15-Jun-04 2:46 
AnswerRe: How to get memory info of a process not using PSAPI, thanks Pin
ThatsAlok16-Jun-04 1:46
ThatsAlok16-Jun-04 1:46 
GeneralSOS [about Genetic Algorithms] Pin
onetwone14-Jun-04 17:56
onetwone14-Jun-04 17:56 
GeneralRe: SOS [about Genetic Algorithms] Pin
Vadim Tabakman14-Jun-04 18:10
Vadim Tabakman14-Jun-04 18:10 
GeneralRe: SOS [about Genetic Algorithms] Pin
onetwone14-Jun-04 22:19
onetwone14-Jun-04 22:19 
Questionhow to get these Rect Area Pin
yingkou14-Jun-04 16:50
yingkou14-Jun-04 16:50 
AnswerRe: how to get these Rect Area Pin
Johan Rosengren14-Jun-04 20:53
Johan Rosengren14-Jun-04 20:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.