realbasic-nug
[Top] [All Lists]

Re: OS X Declare question: What encoding?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: OS X Declare question: What encoding?
From: Charles Yeomans <charles at declareSub dot com>
Date: Thu, 28 Sep 2006 13:43:55 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <52E3C2CE-12A6-457E-A284-4CCEB4155830 at mobleybros dot com>

On Sep 28, 2006, at 1:36 PM, Phil M wrote:

In one of my declares, I am passing a MemoryBlock pointer to get a string value. According to the Apple documentation, the return value is a StringPtr.

How would I be able to get the String encoding and define it so that REALbasic knows? Or do I just use the Encodings.SystemDefault as a "best guess"?

It depends on the function, but if it's returning a StringPtr, then Encodings.SystemDefault is usually the right choice.

Charles Yeomans
_______________________________________________
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>