Results 1 to 6 of 6

Thread: program install on win2k and NT

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    37

    Question

    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

  2. #2

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    37
    P.S
    I have go updated my VB6 application using the update from the microsoft website

  3. #3
    Guest
    Probabbly one of the api's you use wont work under nt.

    We really need more information to solve a problem

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    37
    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

  5. #5

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    37
    do you require more info

  6. #6
    Addicted Member Rudy's Avatar
    Join Date
    Sep 2000
    Location
    BC, Canada
    Posts
    198
    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
    *Rudy^
    Visual Studio 6 Ent. SP5
    Windows 2000 SP4
    Windows XP SP1a

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width