jaimie
2nd February 2007 03:48 UTC
StrLen question
My code is below:
System::Call 'imm32::ImmInstallIME(t "$SYSDIR\OVIME.ime", t "$(^Name)")'
${registry::Open} "${IME_ROOT_KEY}\${IME_KEY}" "/N='OVIME.ime' /G=1 /T=REG_SZ" $0
${registry::Find} $0 $1 $2 $3 $4
StrLen $5 "${IME_KEY}"
StrCpy $6 $1 "" $5
My question is that i found the StrLen result in $5 was different between Windows 2000 and windows xp. $5(win2000) is one more than $5(winxp).
Thanks for your help.
kichik
2nd February 2007 09:19 UTC
How is IME_KEY defined?
jaimie
5th February 2007 03:07 UTC
sorry, miss the information
IME_KEY is defined below:
!define IME_KEY "SYSTEM\CurrentControlSet\Control\Keyboard Layouts\"
kichik
6th February 2007 19:15 UTC
In this case you'd have to include a better example. An minimal example that reproduces the problem and is easy to compile. I can't see how $5 could change after testing the length of such a simple string that uses no variables.