How can I do meth operations on UInt64?

  • Thread starter Thread starter ThunderMusic
  • Start date Start date
T

ThunderMusic

Hi,
I have 2 UInt64 to add and then divide the result by another value. How can
I do this? because the math operators have not been defined for UInt64.

Can somebody help please?

Thanks

ThunderMusic
 
ThunderMusic,
It sounds like you are using VB.NET 2002 or 2003, have you considered using
C# to perform the UInt64 math? Possibly a C# Class Library that your VB
project calls.

VB.NET 2005, due out later in 2005, adds full support for unsigned integers
(UInt16, UInt32, and UInt64).

http://lab.msdn.microsoft.com/vs2005/

Hope this helps
Jay


| Hi,
| I have 2 UInt64 to add and then divide the result by another value. How
can
| I do this? because the math operators have not been defined for UInt64.
|
| Can somebody help please?
|
| Thanks
|
| ThunderMusic
|
|
 
Hi,
I didn't know the functions were different from VB to C#... I thought that
was the same framework, so the same functionnalities... is there no way to
do math operations on UIn64 other than a C# class library? And yes, I'm
using VB.NET 2003.

Thanks for your answer, In fact if it is absolutely not possible to do math
operations on UInt64 from VB.NET 2003, I will do my class library in C#
(cause my project using these operations is a class library)

By the way, if I load my class libraries using reflection, does it matter if
the class library is programmed in VB.NET or C#? (the loading core project
is in VB.NET)

Thanks again
 
ThunderMusic,
Yes the framework itself is the same, however math operations on Int32 &
UInt32 are performed at the IL level, not the Framework. The C# knows &
emits the IL for UInt32, while VB (until VB 2005) doesn't know about UInt32
& doesn't emil the IL.

You are however free to declare & use UInt32 variables, however you simply
won't have any operators.

| By the way, if I load my class libraries using reflection, does it matter
if
| the class library is programmed in VB.NET or C#? (the loading core project
| is in VB.NET)
It shouldn't matter. I have not seen nor heard of anyplace where it
mattered.

Hope this helps
Jay

| Hi,
| I didn't know the functions were different from VB to C#... I thought
that
| was the same framework, so the same functionnalities... is there no way
to
| do math operations on UIn64 other than a C# class library? And yes, I'm
| using VB.NET 2003.
|
| Thanks for your answer, In fact if it is absolutely not possible to do
math
| operations on UInt64 from VB.NET 2003, I will do my class library in C#
| (cause my project using these operations is a class library)
|
| By the way, if I load my class libraries using reflection, does it matter
if
| the class library is programmed in VB.NET or C#? (the loading core project
| is in VB.NET)
|
| Thanks again
|
|
| "Jay B. Harlow [MVP - Outlook]" <[email protected]> a écrit dans le
| message de | > ThunderMusic,
| > It sounds like you are using VB.NET 2002 or 2003, have you considered
| using
| > C# to perform the UInt64 math? Possibly a C# Class Library that your VB
| > project calls.
| >
| > VB.NET 2005, due out later in 2005, adds full support for unsigned
| integers
| > (UInt16, UInt32, and UInt64).
| >
| > http://lab.msdn.microsoft.com/vs2005/
| >
| > Hope this helps
| > Jay
| >
| >
| > | > | Hi,
| > | I have 2 UInt64 to add and then divide the result by another value.
How
| > can
| > | I do this? because the math operators have not been defined for
UInt64.
| > |
| > | Can somebody help please?
| > |
| > | Thanks
| > |
| > | ThunderMusic
| > |
| > |
| >
| >
|
|
 
Back
Top