I wanna display Korean characters in my application's UI.
I have done the following.
1. Defined _UNICODE in Preprocessor definitions (C++ Tab) in settings of the project
2. Added the entry point symbol wWinMainCRTStartup in the Link Tab.
3. Changed the codepage in the rc file.
4. I added the korean charachters in the String table in the script file.
5. I used the LoadString(IDS_TITLE) to get the korean characters from the resource string table.
But the characters are not displayed in the UI. Am I missing anything else?
Could anyone help me.
Make sure that resource file was saved with correct unicode encoding. Because of VC++ 6 did not support editting unicode text in its IDE, you may have to open resource script file in an external unicode-based editor to create string resource and save it in unicode format.
Try VS.NET 2005 Express, it is free version all fully supporting Unicode.
I am installing hook on Internet Explorer window, by using
SetWindowsHookEx(WH_GETMESSAGE, GetMsgProc, (HINSTANCE)g_hInstance, dwThreadID);
Where 'dwThreadID' is of IE. Then in the hook proc(GetMsgProc), I load another "MFC dll", by using LoadLibrary(). This "MFC dll" sinks events of IE using AfxConnectionUnadvise.
When I am done, I try to free this "MFC dll" module by using FreeLibrary()... It frees the library successfully, but after freeing the library IE crashes.
Does anyone have idea why it could crash IE?
Any help would be kindly appreciated...
I am showing tooltip by sending
message to Tooltip control.
When I want to close this, I am sending
SendMessage(hwndch,TTM_TRACKACTIVATE, (WPARAM)(BOOL)FALSE, (LPARAM)
But How to close this tooltip without sending 2 nd message?. Is there any option which create tooltip with Close Icon(x) in it so that I can close using that icon.
Is there any other options.
Most wrappers would just wrap zlib, which doesn't have unicode support. It's not particularly difficult to change fopen to _tfopen, char* to TCHAR* etc, just have to watch out when you allocate space for strings to * sizeof(TCHAR). Tedious though as zlib seems to have lots of unnecessary casts but it shouldn't take more than an hour of your time. I just modded a copy and it seems fine.
I had got an error as "Invalid handle specified" while trying write to a serial port(COM1)using WriteFile().
But the handle to serial port is seems to be valid.
One by one step I had followed is below.
But i would suggest you to use a ready-made serial comms class. It's not easy to handle two different overlapped structures (one for read, one for write).
And if you don't use overlapped, then your reads will hang until there is data to read.
A serial comms class will take care of that problem for you.