I got a null terminated char string holding a filename (8.3 format).
I have a checkbox and i want it to display the file in the char var as the current selection.
Nothing happens... I can see the file is there when I open the CB droplist. I also know that CurConfigSchemeFile is holding the file name correctly through a MessageBox that is displaying it.
I got a null terminated char string holding a filename (8.3 format).
I have a checkbox and i want it to display the file in the char var as the current selection.
char CurConfigSchemeFile[20];
SendMessage(CBChooseConfigScheme, CB_SELECTSTRING, -1, (LPARAM)(LPCTSTR)CurConfigSchemeFile);
Nothing happens... I can see the file is there when I open the CB droplist. I also know that CurConfigSchemeFile is holding the file name correctly through a MessageBox that is displaying it.
Anyone got any idea what is the problem here?
What if i declare the char var like this:
char CurConfigSchemeFile[20], *lpCurConfigSchemeFile;
Would I be fitting what windows want correctly?
Thanks for your time :)
"I have a checkbox and i want..."
Oh crap, you know I am talking about a damned ComboBox, not a CheckBox... I just need some more coffee...
:)