Is the ini file mixed with ANSI and UNICODE?
Then, if UNICODE means UTF-8, it may be solved by MultiByteToWideChar and WideCharToMultiByte, I think.
When UNICODE means UTF-16, I dont have any good idea, sorry.
If the ini file is all UTF-16 encoding with BOM, GetPrivateProfileStringW and WritePrivateProfileStringW could not help you?
HI i am using a flexgrid which is having one column editable .
How to implement copy and paste functionality to this editable column .
Also how to check the copied string , if it contains any spaces in between i dont have to paste it .
Please provide your comments
You can show a cut/paste menu reacting to the OnMouseDown event. The message handler has a parameter "short Button" =1 for Left button =2 for right button. You can get the range of selected cells with GetCol() GetRow() GetCellSel() GetRowSel() The two first gives you a corner of selected cells and the two last gives you the opposite corner. You only need to call GetTextMatrix in order to obtain the cell's text and store them in some structure or array or the clipboard. To paste you only have to follow the inverse procedure. I hope this can help you
I am stucked into a problem of writing into C: drive(OS)in vista. I need to edit something in the metadata of a file. Well I can do this with other volumes but not in C: . Please guide me how to overcome this problem?
If you understand the metadata area of a file($MFT area)of a particular file , that is the location where I have to modify some values of a OS drive. But windows is not giving me permission to write at low level.
How do I get Time Info on a remote network file of the Last Write on a File without actually opening the file. I have an App that needs to know when to re-load. It Opens the File every three minutes to check the last Write time,to determine if it's own version is stale. That traffic alone causes problems. Windows Explorer seems to have a way of getting this info in that way.