I have a list control in my app. I know how to load columns and data into those columns. Here is the problem, if you could help: When the user click on an item in the listbox, the function that is called tries to get the data in each of the column for that row. The program crashes here. I did a step-through with the debugger and found that the GetItem() function does not return the text that is in the listbox. Any ideas why and how to fix it? This is a very vital part of my app since the listbox occupies the entire window...
--------------------
You are not a real programmer until you end all your sentences with semicolons;
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor
If you are using GetItem, then you must fill out the LVITEM structure with the item and subitem you wish to retrieve, as well as a mask of what information you wish to retrieve. When doing a step-through on the code make sure that the information you are passing in the structure to GetItem is valid.
Edited by - Houdini on September 7, 2000 10:28:21 AM
Dave Dak Lozar Loeser
"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."--anonymous