471,348 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

How can I do meth operations on UInt64?

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
Aug 10 '05 #1
3 2106
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
"ThunderMusic" <NO*******@sympatico.caSPAMATALL> wrote in message
news:Ok**************@tk2msftngp13.phx.gbl...
| 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
|
|
Aug 10 '05 #2
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]" <Ja************@msn.com> a écrit dans le
message de news:%2****************@tk2msftngp13.phx.gbl...
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
"ThunderMusic" <NO*******@sympatico.caSPAMATALL> wrote in message
news:Ok**************@tk2msftngp13.phx.gbl...
| 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
|
|

Aug 10 '05 #3
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

"ThunderMusic" <NO*******@sympatico.caSPAMATALL> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
| 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]" <Ja************@msn.com> a écrit dans le
| message de news:%2****************@tk2msftngp13.phx.gbl...
| > 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
| >
| >
| > "ThunderMusic" <NO*******@sympatico.caSPAMATALL> wrote in message
| > news:Ok**************@tk2msftngp13.phx.gbl...
| > | 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
| > |
| > |
| >
| >
|
|
Aug 10 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by John Smith | last post: by
8 posts views Thread by Kevin | last post: by
3 posts views Thread by ThunderMusic | last post: by
21 posts views Thread by ashish.sadanandan | last post: by
9 posts views Thread by Sanjib Biswas | last post: by
5 posts views Thread by stuie_norris | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.