System::Call 'user32::OEMToCharA'
Hi all!
I need to show MessageBox with text translated from codepage cp866 into win1251.
Im trying to convert text with OEMTToCharA function from user32.dll under Win2kProfSP4Rus.
Section
;Call ReadFile
StrCpy $2 "OEMòåêñò"
MessageBox MB_OK|MB_ICONSTOP "$2"
System::Call 'user32::OEMToCharA(t r2, t .r0) i r3'
MessageBox MB_OK|MB_ICONSTOP "$0";returns emty messagebox
MessageBox MB_OK|MB_ICONSTOP "$2";returns OEMtext
MessageBox MB_OK|MB_ICONSTOP "$3";returns emty messagebox
SectionEnd
Why $0 is empty? What i doing wrong?
Alexander Kudrakov.