Search:

Type: Posts; User: Peter Swinkels

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: Need help converting C++ to VB

    I think I found the issue:
    It looks like the original code's author just guessed at how much data would be read from the source file. fread doesn't thrown an error when reading beyond a file's end.
  2. Re: Need help converting C++ to VB

    @Niya: thank you for your effort, unfortunately your code doesn't work either.
  3. Re: Need help converting C++ to VB

    @OptionBase1 and @Niya:
    No, using UShort instead of Integer doesn't help.
  4. Re: Need help converting C++ to VB

    @optionbase1: yes I did and I mentioned as much in my op.
  5. Re: Need help converting C++ to VB

    @niya: thank you for replying. I tried adjusting the array sizes to match the C++ code, but that didn't help.
  6. [RESOLVED] Need help converting C++ to VB

    I found this C++ code meant to decompress LZSS compressed data:


    void decompressData(FILE* fIn, FILE* fOut, int uncompressedLen) {
    uint8_t dictionary[0x1000] = {0};
    int dictPos = 0;
    uint8_t...
  7. Replies
    27
    Views
    1,197

    Re: vb.net is sub-optimal

    Hmh.
  8. Replies
    27
    Views
    1,197

    Re: vb.net is sub-optimal

    Said he who forgot it's "won't" and not "wont". LOL
  9. Re: DataAdapter thinks everything is NULL

    @_cerberus_: GoTo was already discouraged when vb6 came out. I learned to avoid it even as far back as Quick Basic. I suggest you browse the keyword listing for vb over at the MSDN, at:...
  10. Re: Site is intermittently lagging, page loads timing out, anyone else?

    It looks the site is working properly again. For me at least.
  11. Replies
    18
    Views
    977

    Re: System.Diagnostics.Process()

    @dday9: the title for this thread isn't very clear either. It could be more descriptive.
  12. Replies
    5
    Views
    451

    Re: Do while Loop with If statement

    "scancount = scancount + 1" can be shortened to "scancount += 1". Also consider using the .ToString() method instead of the CStr function.
  13. Re: DataAdapter thinks everything is NULL

    After glancing at your code, I see it looks pretty clean, however you used a GoTo statement where it looks like an If/EndIf block could be used. I strongly recommend using modern structured...
  14. Replies
    27
    Views
    1,197

    Re: vb.net is sub-optimal

    He has been learning for 2.5 years. Some kind of course.
  15. Re: Site is intermittently lagging, page loads timing out, anyone else?

    The site still lags. Occassionally I get errors about "invalid private messages" when clearing my pms.
  16. Re: Site is intermittently lagging, page loads timing out, anyone else?

    I have noticed some forum areas work fine while others don't. Very unpredictable. Also I have been getting pms while being unable to open them. (someone else can read and reply though). Could it be...
  17. Re: Site is intermittently lagging, page loads timing out, anyone else?

    Having been having all the afore mentioned issues. This is getting annoying.
  18. Replies
    27
    Views
    1,197

    Re: vb.net is sub-optimal

    He does claim to be Turkish, a language barrier does sound plausible. He also says his english is very good... But then again a learning disability or a troll or a child could also be the case.
  19. Replies
    27
    Views
    1,197

    Re: vb.net is sub-optimal

    Lütfen kodunuzu bu forumda yayınlayın.
  20. Replies
    27
    Views
    1,197

    Re: vb.net is sub-optimal

    What? My message got through? Good thing I didn't accidentally double post.
  21. Replies
    27
    Views
    1,197

    Re: vb.net is sub-optimal

    @Peter Porter:

    That could be but it might as well be a language barrier. Or both.

    One thing I have learned over the course of many hours online is that you only have someone's posts and profile...
  22. VS 2019 Re: Code Review Request - Feedback/Suggestions Wanted

    1. Would it be more than a few bytes? Still you could explicitly declare a type just to be thorough. I believe vb defaults to Integer.
    2. Yeah, I know. It's not always easy to stay up to date and to...
  23. VS 2019 Re: Code Review Request - Feedback/Suggestions Wanted

    You're welcome. Your code looks better than a lot of code I come across.

    I have two more suggestions:
    1. Enumerations support a data type declaration. ("Enum ... As ...")
    2. Some parts of your...
  24. Thread: Syntax

    by Peter Swinkels
    Replies
    29
    Views
    1,824

    Re: Syntax

    Nothing I posted directly relates to your question. My tips apply to anything written in vb.

    Perhaps you should check this tutorial:
    https://www.w3schools.com/js/js_json_intro.asp
  25. VS 2019 Re: Code Review Request - Feedback/Suggestions Wanted

    A few things I noticed:

    1. There's is no need to give every item in an enumeration a number. Just set the first item to "1" and the rest will be handled automatically.
    2. Look up on string...
  26. Replies
    1
    Views
    818

    Re: Outlook Send Email to Listbox Name

    Just a quick tip: there's no need to test for " = True"

    "If ListBox1.Selected(x) Then" will do.
  27. Re: How lock files with Google drive API V3 in VB.NET

    @acturus999:
    While this doens't answer your question, here are a few tips:
    1. Use code tags (the "#" button above the message you're about to post) to enclose your code.
    2. Another way to write...
  28. Replies
    124
    Views
    5,745

    Re: Drafts Very important stuff going on

    Perhaps you could describe what you're linking to?
  29. Thread: Syntax

    by Peter Swinkels
    Replies
    29
    Views
    1,824

    Re: Syntax

    @bear89: you're welcome! And I see you put code tags in your posts. :-)

    I am afraid I don't understand your last question. Sorry.
  30. Thread: Syntax

    by Peter Swinkels
    Replies
    29
    Views
    1,824

    Re: Syntax

    Some tips:
    1. You could initialize strings to "Nothing" instead of an empty string.
    2. The "Output" variable should be declared as "StringBuilder" (System.Text).
    Link:...
  31. Replies
    211
    Views
    14,126

    Re: Stuff to watch

    @dilettante: I remember that.
  32. Re: Google Drive API in VB.net check if file is opened

    While I can't answer your question I have some tips:
    1. Your code depends on several external components. It would make helping you easier if you told us where to find these.
    2. Personally I prefer...
  33. Replies
    211
    Views
    14,126

    Re: Stuff to watch

    Here are a few somewhat random recommendations:
    -Anyone who is interested in futurism should give Isaac Arthur on YouTube a try.
    -Better Call Saul is a surprisingly good Breaking Bad spin-off....
  34. Re: how to convert ASCII to Unicode when export to excel(.xls) using Classic asp

    @anndm:
    I do not understand your question.
  35. Re: [RESOLVED] Saving and loading user settings

    It's not a single module, try looking at https://github.com/PeterSwinkels/Edge-Finder - feel free to submit issues at github btw.
  36. Re: [RESOLVED] Saving and loading user settings

    @peterst:
    I managed to implement the Newtonsoft.Json serializer into a project of mine: https://github.com/PeterSwinkels/Edge-Finder/blob/main/Edge%20Finder/Core.vb - The program is a little...
  37. VS 2019 Re: Do Simple programming language interpreter and editor for kids

    Are you trying to develop your own programming language for people to learn programming? It's hard to tell with that spelling. And why is this in the vb forum?
  38. Replies
    14
    Views
    1,064

    Re: Missing CURSOR_RESOURCE?

    I am glad you understand. I am afraid your question is about something I can't readily help you with. Sorry.
  39. Replies
    14
    Views
    1,064

    Re: Missing CURSOR_RESOURCE?

    My apologies, I am sometimes a little too direct, but unfortunately there are a lot of posters who ask equally short questions leaving others guessing at the details.

    I have no idea what vhgrid is...
  40. Replies
    14
    Views
    1,064

    Re: Missing CURSOR_RESOURCE?

    Where did you get those resources? And what are bolded threads?
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width