-
I have written a program which monitors network packets and displays them in a list box. I created the .exe using the development wizard.
The program will run on any machine using win95 but will not run on NT or 2000 properly. The program starts and seems to run fine but will not put data into the listbox. As anyone come across thisprogram and if so what is the answer.
Many Thanks
-
P.S
I have go updated my VB6 application using the update from the microsoft website
-
Probabbly one of the api's you use wont work under nt.
We really need more information to solve a problem
-
ok its a really simple program all it does is launch a .dat file which runs netstat -e and puts the output into a txt file.
The VB program then reads the file using the following code and puts the data into the listbox
Do While Not EOF(1)
Line Input #nfilenum, mychar
If counter = 13 Then
mychar1 = Mid$(mychar, 20, 16)
mychar2 = LTrim$(mychar1)
mychar3 = mychar2 - prevchar2
mychar4 = Round(mychar3 / 5)
mychar5 = mychar4 & " " & Time & " " & mychar2 & " " & prevchar2
If counter2 > 1 Then
If mychar4 > inputvar Then
mychar5 = mychar5 & " ****"
List1.AddItem mychar5
Else
List1.AddItem mychar5
End If
End If
prevchar1 = prevchar2
prevchar2 = mychar2
If mychar4 >= highval And counter2 > 1 Then
highval = mychar4
label1(1).Caption = mychar5
End If
End If
counter = counter + 1
Loop
The program runs fine on my machine but when insatlled on any other it will run but wont move the data into the list box ....
Thanks
-
-
maybe u could try to compile your app on a windows NT/2k workstation, and if it doesn't work IN VB well maybe it's an API....i dunno