Microsoft KB Archive/297679

= BUG: Turkish Regional Setting Causes Translation Problems =

Article ID: 297679

Article Last Modified on 6/14/2006

-

APPLIES TO


 * Microsoft Java Virtual Machine

-



This article was previously published under Q297679



SYMPTOMS
If you change the regional settings from English to Turkish on a Java Component Object Model (COM) object, you may receive the following error message:

Object doesn't support this property or method



CAUSE
This problem occurs because method names that contain an uppercase &quot;I&quot; are not translated correctly under Turkish regional settings. As a result, a valid method can no longer be found.



RESOLUTION
To work around this problem, rename the method in question. For example, the GetRequestID method produces an error with Turkish regional settings. Change the uppercase &quot;I&quot; to lowercase &quot;i&quot; to rename the method GetRequestiD.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior
 Create a default COM dynamic-link library (DLL) in Microsoft Visual J++.  Add the following code to the Class1.java file, which the default project provides: public String GetRequestID {  return &quot;GETRequestID&quot;; }                    Compile the project. This also registers the new DLL.  Create a file named TurkishTest.js, and paste the following code: var x = new ActiveXObject(&quot;TurkTest.Class1&quot;);

WScript.echo(x.GetRequestID);  Double-click the script file from within Windows Explorer to run the script. If regional settings are set to English, a dialog box displays the text &quot;GETRequestID&quot;.</li> In Control Panel, click Regional Options, and then click Turkish.</li>  Re-run the script. You receive the above-mentioned error message.

Workaround
</li> Change the name of the method in the DLL to GetRequestiD, and recompile the DLL.</li> Test the script with regional settings set to English and then Turkish. In both cases, a dialog box displays the text &quot;GETRequestID&quot;.</li></ol>

<div class="references_section">