title: cannot convert from 'const jchar *' to 'const wchar_t *'
body: <p>This is an error getting thrown from .cpp file.I am using visual studio 10 and windows7 32 bit and am compiling from eclipse indigo </p>
  
  <pre><code>AUWideString(JNIEnv* jni, jstring jstr)
      : mJni(jni),
        mJString(jstr),
        mString(0)
      {
          if (jstr != 0) {
              mString = jni-&gt;GetStringChars(jstr, 0);
          }
      }
  
      ~AUWideString()
      {
          mJni-&gt;ReleaseStringChars(mJString, mString);
      }
  
      operator const wchar_t*() const
      {
          return mString;
      }
      **error C2440: '=' : cannot convert from 'const jchar *' to 'const wchar_t *'
              Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
      error C2664: 'JNIEnv_::ReleaseStringChars' : cannot convert parameter 2 from 'const wchar_t *' to 'const jchar *'****
  </code></pre>
  
  <p>how should this be resolved?</p>