Advertisement

C++/CLR Listview selected item "Ini file"

Started by July 17, 2017 12:04 AM
0 comments, last by User134 7 years, 4 months ago

Hi, i wish if everyone is having a good day ;)
My question is about 
I am reading the selected text from the listview 
String ^ItemSelected = listView1->SelectedItems[0]->Text;
But i wanted to write the result to an ini file but since the Writeprivateprofilesection needs an parameter of type LPCWSTR i cannot pass ItemSelected to it 

WritePrivateProfileSection(ItemSelected,L"Key = Value", L".//Text.txt");

This topic is closed to new replies.

Advertisement