Re: Unsigned 32 bit
From: J French (erewhon_at_nowhere.com)
Date: 09/25/04
- Next message: Mark J. McGinty: "Re: Poor VB Programming"
- Previous message: john andrew: "modifying data in a grid ajt"
- In reply to: Jim Carlock: "Unsigned 32 bit"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 25 Sep 2004 08:46:56 +0000 (UTC)
On Fri, 24 Sep 2004 14:20:48 -0400, "Jim Carlock"
<anonymous@127.0.0.1> wrote:
>1) Any suggestions about creating a true UInt32 or UInt64?
>
>Fuction AddUInt(ByVal ui32_1 As UInt32, ByVal ui32_2 As UInt32) As UInt32
> AddUInt = ui32_1 + ui32_2
>End Function
You can make a very nice unsigned Long out of a Currency
- provided you do not want 'overflow'
I see you are dabbling with MASM
- take a look at : http://www.masm32.com
Another way is to use Delphi which includes the data types you want,
and also has inline ASM
One word of warning (from reading your later posts) be very careful
about changing 'PASCAL' to 'C' in any calling conventions.
VB uses StdCall which is right to left pushing of parameters with the
callee cleaning the stack
Older BASICs used Pascal as the convention, Left to Right with the
callee cleaning up the stack
The standard 'C' uses right to left, but the /caller/ cleans the stack
Old books are rather dangerous
- Next message: Mark J. McGinty: "Re: Poor VB Programming"
- Previous message: john andrew: "modifying data in a grid ajt"
- In reply to: Jim Carlock: "Unsigned 32 bit"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|