Hello All, Good Evening, I converted my project from ANSI to UNICODE project. In the Unicode project, the values changing in a text doesn't reflect by itself and the textbox needs UpdateWindow() to be called whenever there is a change in it. But this kind of behaviour doesn't happen with the ANSI project previously. Can anyone advice on this ? Many thanks in advance. Bhanu
bhanu_reddy09
Posts
-
Update window problem in unicode -
Unicode support in CEditDear ARJ, Many thanks for your reply. The real problem is that the above code will work only if we set the project properties to Unicode otherwise the above won't work. I want to display those control characters in CEdit without changing my main project's project setting to Unicode.
-
Unicode support in CEditDear All, I want to disply the character ♠ in the CEdit but this only getting diplayed when I change the project settings to Unicode. But to display this single character, I need to change my entire project which seems a huge task for me. I planned to do some alternative for this. Is it possible to extend a CEdit class to display unicode characters and then to include that class to my main project without changing the existing settings of my main project. Please advice me. Many thanks in advance.
-
Converting ANSI to UNICODEYes, I got compiler warning but how to change the character 0x06 to Unicode and display properly in the CEdit. Thanks...
-
Converting ANSI to UNICODEMany thanks for your replies and suggestions. Actually I read a data from the serial device and it is having the ASCII value 6 and the corresponding character for 6 is '♠'. I just give the previous code as an example.
//the actual data will be
szData[0] = 0x06;//from a serial deviceNow, I want to display the corresponding character (received from serial device) for 0x06 in the CEdit. Please advice me.
-
Converting ANSI to UNICODEDear All, I am having problem in converting ANSI to UNICODE but my code is not giving the desired result. Please have a look at the below code and advice me. When I compare the both strings, the strings are not equal after conversion. Please help me. Many thanks in advance.
char szData[2] ;
szData[0] = '♠';
szData[1] = 0;
wchar_t wszData1[] = L"♠";
wchar_t wszData2[2];
MultiByteToWideChar(CP_ACP, 0, szData, -1, wszData2, sizeof(wszData2) / sizeof wchar_t));
if (wcscmp(wszData1, wszData2) == 0)
MessageBox("Strings are equal!");
else
MessageBox("Strings are not equal."); -
Facing problem while file readingIt is non unicoded. For eg. è ë
-
Facing problem while file readingHello, Good Evening, I need to read data from the file ,which contains some special characters (in european languages).I need to read those data as it is and display those reading data in CEdit box,But what's my problem is while reading data some of the characters got changed.How can i read data as it is. Please help me out. With Kind regards, Bhanu
-
List focus setting problemHello All, In "ListCtrl" i need to set the focus of the Key Up&Down events,how can i set,please some one help me. With kind regards, Bhanu
-
Ctreectrl problemHello All, Iam using CTreeCtrl method to add items in a tree.Actually i create two root nodes using GetRootNode()method.I add both root nodes properly in the tree,But what's my problem is i need to add child nodes in appropriate parent(root)nodes at runtime.But,all the child nodes adding in the first parent(root)node only.once i use deleteallitems()method and redraw the tree only child nodes are added in appropriate parent(root)nodes.Without using DeleteAllItems() i need to add the child nodes in a appropriate parent(root)node. please anybody help me. Thanks in advance, Regards, bhanu.
-
problem with adding items using CTreeCtrl classHello All, Iam using CTreeCtrl method to add items in a tree.Actually i create two root nodes using GetRootNode()method.I add both root nodes properly in the tree,But what's my problem is i need to add child nodes in appropriate parent(root)nodes at runtime.But,all the child nodes adding in the first parent(root)node only.once i use deleteallitems() and redraw the tree only child nodes are added in appropriate parent(root)nodes.Without using DeleteAllItems() i need to add the child nodes in a appropriate parent(root)node. please anybody help me. Thanks in advance, Regards, bhanu.