Combining ULong

Bart Pietercil bart.pietercil at gmail.com
Thu Oct 4 10:47:44 CDT 2007


On 4-okt-07, at 17:40, Ruslan Zasukhin wrote:

> On 4/10/07 6:38 PM, "Bart Pietercil" <bart.pietercil at gmail.com> wrote:
>
>>>
>>>        (objptr_comppool << 32) +  objptr_module
>>>
>> sorry, I need a bit more explanation (am bad in these bit calc)
>>
>> the << is a shiftLeft op , right ?
>
> yes
>
>> so in the ULLong the first 32 bits are now objptr_comppool
>>   and then we add ???? objptr_module
>
> Yes. So you get ULLONG value on 8 bytes.
>
> Is this what you are looking for ?
>
Need to think about that (I think this is ok) but

in another case we are combining a Varchar with an Objectpointer in a  
Varchar method field with the concat(str,objptr)
and VStudio does not seem to be happy (gives warning sign on method)  
with this ?

So what am I doing wrong in that case ?

Bart


More information about the Valentina mailing list