Jump to content

Long not Long enough ...

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
mike.blankenship

mike.blankenship

    Newbie

  • Members
  • Pip
  • 2 posts
I have a VB 6.0 application that I am using to monitor UPload and Download stats via the IP Helper API. Everything is working ok until the Byte count goes over 2.147 Billion which I belive is the limitation of Long Datatype. I have looked into reseting the Counter through the API but it does not look like I can.

My question is :

1. Is there any DataType in VB that will hold a number larger then 2,147,483,647

or

2. Is there a way to reset the TCP statistics without disabling the NIC and enabling again.

Any help is appreciated.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
You may be able to find a custom numeric class that will allow you to store larger values.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,675 posts
Cant you just truncate the byte count or convert it into kb when it reaches a certain limit