Search Results - VBForums

Search:

Type: Posts; User: Inferrd

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    25
    Views
    545

    VS 2010 Re: Root element is missing

    Sort of. I've only very briefly scanned the documents and the RFC's but saw that you need to allow for sending and receiving headers with the xml messages, and I was indeed getting some pretty weird...
  2. Replies
    25
    Views
    545

    VS 2010 Re: Root element is missing

    That's probably not going to work when you come to send the login message.

    The bytes you are skipping over (0, 0, 3) are part of a 4 byte header that represent the total size of the message the...
  3. Replies
    5
    Views
    285

    Re: Error With Fileget freezing program.

    Are you sure the file "tablet.dat" exists, and if it does, it is in the directory that FileGet expects it to be in (as you haven't specified a full file path)?
  4. Re: Error: Value of type 'Date' cannot be converted to 'Long'

    I'm having one of those days....

    See post#7
  5. Re: Error: Value of type 'Date' cannot be converted to 'Long'

    Wrong Thread....

    EDIT: Actually right thread. I just cross posted against SS and thought I'd wandered into the wrong thread.

    I agree with SS regarding confusing dates. CDate("9.1.2015") leaves...
  6. Replies
    4
    Views
    430

    Re: Downloading file using httpwebrequest

    .pdf files display textual data when rendered, but the files themselves contain binary data. You are using StreamReaders and StreamWriters which expect the contents of the streams to be text. They...
  7. Re: How do I get a word to stop auto generating a method

    Did you change this line in your Sub New as well?
    commissionRateValue = rate 'validate and store commision rateFrom the comments it sounds like you expect the value of rate to be checked to see if...
  8. VS 2012 Re: Need to Convert ASCII 3-Byte Signature Format to Image

    That's a nice bit of observation and deduction :)

    However, the documentation does state (in a way that is very easy to miss) that the first coordinate set following a segment start should be...
  9. Re: comparing minutes in datetime objects tips.

    Hi,

    It's just a different way of thinking about the problem.

    Your original specification:
    if there is a difference less than 60 minus (a show starts sooner than 1 hour) then i can skip it.
    ...
  10. Re: comparing minutes in datetime objects tips.

    mmmmm

    Dim TimeDifference As TimeSpan = datetimesession - datetimeNowsession

    If Int(TimeDifference.TotalHours) >= 1 Then
    ' do something while your waiting for an hour or more
    ' ie....
  11. Replies
    40
    Views
    968

    Re: How to get status of a server.

    Ah. OK. I was hoping you might be familiar with Streams and Readers as they are what I would use to parse the response. More than one way to skin a cat, of course.


    Let me address this first:
    ...
  12. Replies
    40
    Views
    968

    Re: How to get status of a server.

    Are you learning VB in school?
    Have you used a StreamReader to read a text file?
    Do you know what a FileStream is?

    And what version of VB are you using?
  13. Re: When I put vb.net code into visual studio I come across some errors.

    Not for my modem, no. But then it's badly written and doesn't seem to be complete.
  14. Re: When I put vb.net code into visual studio I come across some errors.

    Looks to me like the code is enabling/disabling this: https://en.wikipedia.org/wiki/Network_interface_controller , which isn't your modem.
  15. Replies
    40
    Views
    968

    Re: How to get status of a server.

    I take it you are pretty new to programming in VB then?
    No. response is a byte array. You can't pass a byte array to MsgBox. Try it and see. (always worth trying things).

    There are lots of ways...
  16. Replies
    40
    Views
    968

    Re: How to get status of a server.

    The order of the fields is always the same.

    By "Players", do you mean the count of players on the server? If so, for A2S_INFO it is the 9th field in the response, as I showed above. For...
  17. Replies
    40
    Views
    968

    Re: How to get status of a server.

    The number of players on the server is returned in the response to either the A2S_INFO or A2S_PLAYER queries. You have to examine the bytes in the Response() byte array and determine which byte...
  18. Replies
    40
    Views
    968

    Re: How to get status of a server.

    I see :)

    Did you try the code I posted? All it does is request a challenge number from the server and time how long it takes from sending the request to receiving the response. If you get to the...
  19. Replies
    40
    Views
    968

    Re: How to get status of a server.

    The wiki does say that A2A_Ping is considered to be deprecated (and it didn't work for me, which is why I used A2S_RULES in my pseudo ping code)

    &H is VB's literal type character that specifies...
  20. Replies
    40
    Views
    968

    Re: How to get status of a server.

    You use UDP to send the query to the server's query port (2303, remember) as a stream of bytes.

    Study the information given in the Steam Wiki and study the code I gave in Post#21. That code sends...
  21. Replies
    40
    Views
    968

    Re: How to get status of a server.

    I have no idea what information is available in any database the server may maintain, but basic server/game info is available using the game query protocols outlined in the document I linked to...
  22. Replies
    40
    Views
    968

    Re: How to get status of a server.

    This.


    Here's something like the equivalent of Ping (note: the query port is one greater than the game port):Imports System.Net
    Imports System.Net.Sockets
    '
    '
    Private Sub Button1_Click(sender...
  23. Re: Is this the perfect class for multiple db connection use?

    OK, I shouldn't reply to this thread as I haven't read the documentation for IDisposable yet. That's on my bucket list for next week :D

    Anyway...I would question if you really need to implement...
  24. VS 2013 Re: How best to handle this character:

    Hi,

    Just a quick point or two:

    Your code might be working as you expect, but it may not be as robust as you think.

    System.Text.Encoding.Default is based on your Regional settings. It will...
  25. Replies
    3
    Views
    247

    VS 2013 Re: Sort String

    If it were me, I'd maintain a list of your numbers separately from the RTB, and work from the List rather than the RTB's Text.

    Declare a List(Of String) at Class level.
    When you need to load your...
  26. Replies
    3
    Views
    247

    VS 2013 Re: Sort String

    You have a loop in the middle of your code which loops as many times as you have lines in the RTB.
    For i = 0 To UBound(arr) - 1All it does on each pass is to update your labels with exactly the...
  27. Replies
    11
    Views
    356

    Re: Collection Modified

    Very little of what has been said here makes any sense to me at all :( Should I be worried? :p


    Looking at the code behind the Dictionary Class, it appears the Dictionary maintains an internal...
  28. Re: How to solve late binding problem on hashing script?

    @FD: Null in c#, Nothing in VB

    @mnxford: In regards to late binding, you have declared hash As Type Object. The Object Type does not have a ComputeHash method, so the compiler complains.

    All...
  29. Re: Collection or data structure that works like vlookup

    I was going to suggest using a binary search on your Keys (copied to an array and sorted), but something came up before I could post.

    It sounds like the method you coded is in fact a binary...
  30. Replies
    25
    Views
    814

    VS 2008 Re: Cheking if a file exists

    It could be user error, of course. However, when iliekater mentioned his code worked as expected on XP but "fails to see that the file does NOT exist" under Windows 7, I wondered if it might be file...
  31. Replies
    25
    Views
    814

    VS 2008 Re: Cheking if a file exists

    What is the full path of the folder that you are trying to create your file in?
  32. Re: Copying Files from Documents folder and how to skip hidden folder or delete ones?

    I am way too tired to look into this properly, but the following modifications to your code should get you started:Public Sub CopyFavoritesFolder(ByVal sourcePath As String, ByVal destinationPath As...
  33. Re: Copying Files from Documents folder and how to skip hidden folder or delete ones?

    Not in the code from Post#4. Don't know what your code currently looks like, though.
  34. Re: Copying Files from Documents folder and how to skip hidden folder or delete ones?

    The My Music folder isn't actually a folder. It's a junction point, is there for backwards compatibility with older OS's, and links to the actual Music folder.

    I believe it has File Attributes of...
  35. Replies
    8
    Views
    293

    VS 2012 Re: Help on radio buttons visual basic

    Would depend on how the data is entered and also on what you have been taught.

    If it's for numbers entered in your weight and height TextBoxes, then maybe you have been taught the Double.TryParse...
  36. Replies
    8
    Views
    293

    VS 2012 Re: Help on radio buttons visual basic

    :thumb:
  37. Replies
    8
    Views
    293

    VS 2012 Re: Help on radio buttons visual basic

    Hi joemanias, welcome to the forum.

    Question: My height is 2.0m and I weigh 100Kg. I predict I am "normal".

    What output will your program show?
  38. Replies
    17
    Views
    631

    VS 2010 Re: .NET Framework issue

    Looks to have been fixed in versions after 10.0.20911.1

    See the discussion at...
  39. VS 2015 Re: Errors not getting picked up properly anymore in lambda subs??

    Well bu**er me! I always have Option Strict turned on at IDE level, but for some stupid reason, it was turned off in the project I used to test your code. I thought there was something weird going on...
  40. VS 2015 Re: Remove another word then add the missing word from previous =

    Can you explain a little better what you mean by that last paragraph?

    Do you mean you want to display the same grid with the words in the same position, but with one of the words blanked out? Or...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.