Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

NewString LPWSTR length

843829Aug 23 2006 — edited Aug 23 2006
I have a LPWSTR string, and need to get it into java using (*env)->NewString(env, lpwstr, len)

Problem is, i cannot get the length of the f'er! Whats the quickest method to get the length of the LPWSTR string?

I've looked at that WideToMultiByte crap but i can't make sense of it. Can't wait to finish this part off and be done with C!

(p.s. this needs to be C code, not cpp, so conversion is out)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2006
Added on Aug 23 2006
1 comment
450 views