Problem with ListCtrl on Windows 98
-
I have a program that has a list view on a dialog. I have a separate thread from a DLL go out and get some data (from Outlook Express in this case). The data ends up begin returned OK, but wehen I try to add the data to the list control, the data keeps getting put in the first entry. I am using InsertItem(-1, NULL) to insert the data into the list control. The funny thing is that this is working in other modes, just not this one. Anyone have any ideas? By the way, the app consists of a main EXE, which calls an MFC DLL (which holds the UI). The UI DLL in turn uses an extension DLL to save and load data. The UI DLL also calls an MFC DLL to handle the import of the data (no UI). Any help would be greatly apprecaited. [EDIT] By the way, this only happens on onc test system with Windows 98. Other WIndows 98 systems seem to work fine. [/EDIT] Regards, Brigg Thorp Software Engineer Timex Corporation
-
I have a program that has a list view on a dialog. I have a separate thread from a DLL go out and get some data (from Outlook Express in this case). The data ends up begin returned OK, but wehen I try to add the data to the list control, the data keeps getting put in the first entry. I am using InsertItem(-1, NULL) to insert the data into the list control. The funny thing is that this is working in other modes, just not this one. Anyone have any ideas? By the way, the app consists of a main EXE, which calls an MFC DLL (which holds the UI). The UI DLL in turn uses an extension DLL to save and load data. The UI DLL also calls an MFC DLL to handle the import of the data (no UI). Any help would be greatly apprecaited. [EDIT] By the way, this only happens on onc test system with Windows 98. Other WIndows 98 systems seem to work fine. [/EDIT] Regards, Brigg Thorp Software Engineer Timex Corporation
Yeah, I remember that problem. It seems to be special Win98 index behaviour. I circumvented it by simply using: int x = 0; while() { InsertItem(x, ""); x++; } BTW I'm not sure it's safe to use NULL as text either Nick