I came here by google to find how to convert a const char * to CString without a book. I should know better than look for answers in Code Project replies. Guess what? Come 2011, 2012, and beyond people will still be finding this disappointing conversation. Good to know at the top of the search will be fodder like this.
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.
Last Visit: 31-Dec-99 18:00 Last Update: 23-Sep-23 22:17