Byte swapping problem with TextField using API

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Jul 3 03:42:17 CDT 2008


On 7/3/08 9:09 AM, "Matthew Jew" <mjew at icnc.com> wrote:

> I was told that since I was accessing the data as a blob, that I would
> not gain byte-swapping as needed.
> So, I changed to this:
> 
> Const_I_Value_Ptr myStringValue = aHTMLTemplateTable->valueText-
>> get_Value();

ValueText this is a field, yes?

Try please 

    valueText->get_Value()->get_String( pBuffer, BufferLen );

This is analog of e..g REALBasic code as

    s = fldText->GetString()


Exists 3 forms 

    // ---------------------
    // get string:

                            /** Get a string representation of value
(Unicode).
                                @param inLimit - limit of string size in
characters. */
virtual String                get_String( tslen inLimit = -1 ) const = 0;


                            /** Get a string representation of value
(ASCII).
                                @param outString - Buffer for string
representation of value.
                                @param inBufferChars - size of buffer in
characters. */
virtual char*                get_String(
                                char*     outString,
                                tslen     inBufferChars ) const = 0;
                   
                            /** Get a string representation of value
(Unicode).
                                @param outString - Buffer for string
representation of value.
                                @param inBufferChars - size of buffer in
characters. */
virtual UChar*                get_String(
                                UChar*     outString,
                                tslen     inBufferChars = -1 ) const = 0;



-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list