I have added a list box on a dialog box with the name "IDLIST"
Now I want to change the text of that dialog when the item(s) are selected in the list box. I used the following code:
cannot convert from 'void *' to 'int *'
error C2664: 'SetWindowTextA' : cannot convert parameter 2 from 'int *' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
error C2440: '=' : cannot convert from 'void *' to 'char *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
Do you know why its giving me these errors and how can I fix them.
Remember how C++ won't let you arbitrarily assign void* pointers to things? It happens here By the way, you should use new[]/delete[] rather than the Global functions.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds
It runs fine. But when I select something from the listbox, it gives me an error message. I have included the picture of that error message box in that attachment.
Yes it is the second choice but I thought that it would work with both of them(single and muliselection) because if there is just one selection then it may count just 1.
Am I doing rong. If yes, then how do I do the other way?