Old 12th January 2005, 08:52   #1
AKudrakov
Junior Member
 
Join Date: Jan 2005
Posts: 2
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.
AKudrakov is offline   Reply With Quote
Old 12th January 2005, 11:42   #2
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
System::Call 'user32::OemToCharA(t r2, t .r0) i r3'
Case sensitive
Takhir is offline   Reply With Quote
Old 13th January 2005, 04:33   #3
AKudrakov
Junior Member
 
Join Date: Jan 2005
Posts: 2
Thank you Takhir!!!
AKudrakov is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump