realbasic-plugins
[Top] [All Lists]

Re: How to make folderitem from UTF16 path string on Windows?

To: "REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>" <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: How to make folderitem from UTF16 path string on Windows?
From: William Yu <william at realsoftware dot com>
Date: Mon, 21 Feb 2005 09:21:38 -0600
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
On 2/20/05 6:24 PM, "Christian Schmitz" <support at monkeybreadsoftware dot de>
wrote:

>>>> Thanks Bjorn, that's a good tip.
>>> 
>>> And it works :-)
>> 
>> Of course it does.
> 
> Sorry, but it does not work perfectly.
> If I pass an UTF16 REALstring, I can get folderitems with invalid path
> inside which are useless. I convert  it to UTF8 now and the folderitem
> works.

One thing that should be pointed out is that when you build your string, you
should also copy an extra null byte (this only applies to UTF16 strings).
I'm guessing that will solve it for you.


-- 
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>