-Error reading characters of string
4 getCarName likely returns a temporary. After the assignment the temporary object is destroyed and the pointer item.pszText points to invalid memory. You must ensure that the string object is valid during the call to ListView_InsertItem. The const_cast is an artifact of the fact that the Windows API uses the same structure to set and … Read more