SendDlgItemMessage() function for its last parameter take an explicit string such as L"TEST" and when I pass it a string or wstring variable it does not work at all;
if I write below code it does not add any string item to my LIST_BOX :
string str[10];
for(int i = 0; i<10; i++)
str[i] = "Item " + i;
int index2 = SendDlgItemMessage(hdlg, IDC_LIST2, LB_ADDSTRING, 0, (LPARAM)str[MarkerNumber ]);
Can you help me to set this function for using string parameters?