All this compiles ok, with no errors, but the cursor is vertical and shows on top-right corner of the window, and the text flow is like japanese top to bottom in characters, right to left in lines. The characters are invisible, but copyable. I have english windows XP SP3 with no asian software on board.
#include <windows.h>
#include <richedit.h>
int main() {
LoadLibrary("Msftedit.dll");
HINSTANCE hInstance = (HINSTANCE)GetModuleHandle(0);
HWND richeditWindow = CreateWindowExW (
WS_EX_TOPMOST,
L"RichEdit50W",
L"window text",
WS_OVERLAPPEDWINDOW | ES_MULTILINE | WS_VISIBLE,
0, 0, 500, 500,
NULL, NULL, hInstance, NULL
);
MSG msg;
while( GetMessageW( &msg, richeditWindow, 0, 0 ) ) {
TranslateMessage( &msg );
DispatchMessageW( &msg );
}
}