realbasic-plugins
[Top] [All Lists]

Re: Currency and Int64 values not passed correctly to plugin

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Currency and Int64 values not passed correctly to plugin
From: Bob Delaney <delaneyrm at earthlink dot net>
Date: Fri, 14 Dec 2007 22:13:37 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <4BA9F0E0-52D4-4338-8C19-555FE96EFA50 at earthlink dot net>
On Dec 14, 2007, at 12:15 AM, Bob Delaney wrote:

> So the same problem exists for an Int64 value. RB incorrectly passes
> only the lower 32 bits of the Int64 value to a plugin.

This turns out to be incorrect. I wrote a very simple program:

static long long getINT64(long long x)
{
        return x;
        
}/* getINT64 */

and another method definition:

{ (REALproc) getINT64, REALnoImplementation, "getINT64(x As INT64) As  
INT64" }

When tested, this worked perfectly. All 64 bits were passed. Something  
else is going on in changing an Int64 to a Decimal.

Bob

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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