Click here to Skip to main content
15,906,626 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCHttpFile->WriteString Pin
aman200615-Sep-05 10:28
aman200615-Sep-05 10:28 
AnswerRe: CHttpFile->WriteString Pin
David Crow15-Sep-05 10:33
David Crow15-Sep-05 10:33 
GeneralRe: CHttpFile->WriteString Pin
aman200615-Sep-05 10:50
aman200615-Sep-05 10:50 
GeneralRe: CHttpFile->WriteString Pin
David Crow15-Sep-05 16:52
David Crow15-Sep-05 16:52 
Questionmicro control Pin
samira forooghi15-Sep-05 9:43
samira forooghi15-Sep-05 9:43 
AnswerRe: micro control Pin
Cedric Moonen15-Sep-05 20:44
Cedric Moonen15-Sep-05 20:44 
AnswerRe: micro control Pin
Eytukan15-Sep-05 23:58
Eytukan15-Sep-05 23:58 
Questionport parallel Pin
samira forooghi15-Sep-05 9:41
samira forooghi15-Sep-05 9:41 
AnswerRe: port parallel Pin
karmendra_js15-Sep-05 19:19
karmendra_js15-Sep-05 19:19 
QuestionDiving into GPS development Pin
ClockDivider15-Sep-05 9:19
ClockDivider15-Sep-05 9:19 
QuestionListView_SortItems question Pin
Tom Wright15-Sep-05 8:29
Tom Wright15-Sep-05 8:29 
NewsRe: ListView_SortItems question Pin
ClockDivider15-Sep-05 9:11
ClockDivider15-Sep-05 9:11 
GeneralRe: ListView_SortItems question Pin
Tom Wright15-Sep-05 10:06
Tom Wright15-Sep-05 10:06 
GeneralRe: ListView_SortItems question Pin
ClockDivider15-Sep-05 10:40
ClockDivider15-Sep-05 10:40 
GeneralRe: ListView_SortItems question Pin
Tom Wright15-Sep-05 11:30
Tom Wright15-Sep-05 11:30 
GeneralRe: ListView_SortItems question Pin
ClockDivider15-Sep-05 12:14
ClockDivider15-Sep-05 12:14 
GeneralRe: ListView_SortItems question Pin
Tom Wright15-Sep-05 12:34
Tom Wright15-Sep-05 12:34 
QuestionRe: ListView_SortItems question Pin
ClockDivider15-Sep-05 13:49
ClockDivider15-Sep-05 13:49 
The prob is this in:

ListView_GetItemText(lpNmlv->hdr.hwndFrom, lParam2, lParamSort, szBuf2, sizeof(szBuf2));

the parameter lParamsort is wrong here, it should define the column (lpNmlv->iSubItem).

AND: Do you to set the LPARAM value when inserting your item?

Here is an excerpt from .NET help: "The lParam1 parameter is the 32-bit value associated with the first item being compared, and the lParam2 parameter is the value associated with the second item. These are the values specified in the lParam member of the items’ LVITEM structure when they were inserted into the list."

I hade precisely the same problems as you, now that I assured being the item.lPram member valid and changing the wrong parameter value to the item.iSubitem it works...

Hope it helps now?...
GeneralRe: ListView_SortItems question Pin
Graham Bradshaw15-Sep-05 13:43
Graham Bradshaw15-Sep-05 13:43 
GeneralRe: ListView_SortItems question Pin
David Crow15-Sep-05 16:55
David Crow15-Sep-05 16:55 
QuestionCopy a directory Pin
anderslundsgard15-Sep-05 8:12
anderslundsgard15-Sep-05 8:12 
AnswerRe: Copy a directory Pin
Ravi Bhavnani15-Sep-05 8:57
professionalRavi Bhavnani15-Sep-05 8:57 
AnswerRe: Copy a directory Pin
ThatsAlok15-Sep-05 17:51
ThatsAlok15-Sep-05 17:51 
QuestionAdding Date Time Picker to List Control Pin
ExtraLean15-Sep-05 8:08
ExtraLean15-Sep-05 8:08 
QuestionChange CRichEditCtrl CFE_LINK color Pin
cbusgut15-Sep-05 6:49
cbusgut15-Sep-05 6:49 

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.