Search:

Type: Posts; User: Peter Swinkels

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Re: IBM XT relics corrupted error

    You're welcome. Did you manage to solve the problem?
  2. Replies
    2
    Views
    149

    VS 2017 Re: Modify System Registry Values

    Doesn't this depend on the target CPU you use for your project?
  3. Re: NASM - Trying to write a TSR->

    Okay, I made a few changes and decided to try to have my TSR display a character instead of modifying the Num Lock status. Code:



    ; A TSR for MS-DOS - By: Peter Swinkels, ***2021***
    ORG 0x0100...
  4. Re: NASM - Trying to write a TSR->

    @wqweto: I fixed to the typo. 0xC8 is now 0x08. This has made some difference. The program now freezes DOSBox... Sigh. Any ideas?
  5. Re: NASM - Trying to write a TSR->

    EDIT: The code posted here has been updated.

    Looking at this YouTube video: https://www.youtube.com/watch?v=PQXNpPul5oo&t=1960s - I wrote the following:



    ; A TSR for MS-DOS - By: Peter...
  6. Replies
    3
    Views
    165

    Re: Localhost not available

    Glad to hear it. Could you please mark this thread as resolved then? Thank you.
  7. Replies
    3
    Views
    165

    Re: Localhost not available

    Isn't this a Windows question?
  8. Re: Are users using laptop monitor or larger monitors?

    - It can: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.screen.allscreens?view=net-5.0
  9. Re: Searching a .bin file for a array of Ushorts?

    https://docs.microsoft.com/en-us/dotnet/api/system.io.binaryreader.readuint16?view=net-5.0
  10. Replies
    13
    Views
    329

    Re: Absolute Value of a Float

    Function myAbs(x As Double) As Double
    'copy and re-interpret as 32 bit integer
    Dim Casted As Integer = CInt(x)

    'clear highest bit
    casted = casted And &H7FFFFFFF%

    're-interpret...
  11. Re: NASM - Trying to write a TSR->

    Hi wqweto, I will look into that.

    After some testing:
    1. I suspect there may be an issue with the way the DS (data segment) register is set while my code is being called as though it were an...
  12. Re: NASM - Trying to write a TSR->

    Hi, thank you for pointing that out. In NASM (which I forgot to mention as the one I am using) "MOV DX, MemoryDumper" should work. However I will look into using the LEA opcode.
  13. [RESOLVED] NASM - Trying to write a TSR->

    I decided to write a TSR for MS-DOS (specifically DOSBox) Why? Because I am curious as to what all that software writes to memory. DOSBox has a debugger version but I don't like it. Anyway:



    ;...
  14. Re: Discovering non-ascii codes in text files

    Could you post the code that does the actual conversion?
  15. Re: Discovering non-ascii codes in text files

    Welcome to the forum.

    And you're converting text files to word files and need help? To Word? What does that mean? *.doc or *.docx files? What method are you using? What is the relevant code?
  16. VS 2019 Re: Error A blocking operation was interrupted by a call to WSACancelBlockingCall

    Okay, I had a look. I can't replicate your issue. Here are however some more coding tips:

    13. There is no need to store a message in a string before it can be displayed by a message box.
    14. Look...
  17. Replies
    8
    Views
    264

    Re: DataGridView and file txt

    - I wasn't aware of the flaw in the code I posted. Thank you for pointing it out.
  18. VS 2019 Re: Error A blocking operation was interrupted by a call to WSACancelBlockingCall

    Alright, you can e-mail it and I will take a look. There is no guarantee I can find a solution though. Is there any reason you don't want to post your project here?
  19. Replies
    8
    Views
    264

    Re: DataGridView and file txt

    You can actually use Linq to filter your array after reading it:

    Here's an example of how you could read an *.ini file and avoid having the comments in your list.


    Imports System
    Imports...
  20. Replies
    8
    Views
    264

    Re: DataGridView and file txt

    I would recommend using System.IO.File.ReadAllLines to read everything into a string array and then parse it instead of reading the file from a loop. I don't know exactly what you want to do but you...
  21. VS 2019 Re: Error A blocking operation was interrupted by a call to WSACancelBlockingCall

    Welcome to the forum.

    I tried examining your code, but I can't debug it. What you posted depends on so many external components you're going to have to post your project or at least more of.
    ...
  22. VS 2019 Re: Visual Basic Customized Piano. I'm a Noob. So please tolerate my stupid questions

    Questions in and of themselves aren't stupid. I understood nothing about programming when I first started. :-) I can't download your project. Could you attach it to a reply in this thread?
  23. Re: How to remember form size and position when program shuts down while minimized?

    Why not use an Imports or With statement to avoid typing out the full reference to a property or method? Also use interpolated strings....
  24. Re: How to generate string by specifies a maximum number of repeated characters?

    Your program appears to work. What is it for? You're not supposed to include *.exe files in your attachments btw.
  25. Re: Help! Vb2010 +sqlite3 datagridview The transformation of checkbox value

    If you need to convert True and False to 1 and 0, the following should work:

    variable = Math.Abs(CInt(boolean))

    And welcome to the forum!
  26. VS 2010 Re: conversion from string " " to type 'Double' is not valid

    I just noticed the string concatenation operator ("&") is being used to build strings.



    "A" & r


    Can be changed to:
  27. VS 2010 Re: conversion from string " " to type 'Double' is not valid

    Uh, isn't CDec for the Decimal data type? CDbl is for the Double data type.
  28. Re: [RC6]Install,Is RC6 unable to register under XP system?

    Why are using an OS that has been obsolete for years? And what is RC6?
  29. Replies
    2
    Views
    267

    Re: What does BTT mean?

    Could you tell which third party object? Could you post the relevant code? That would help a lot in answering your question.
  30. Replies
    17
    Views
    438

    Re: Problem parsing a pdf

    @johnywalker:
    I just did some checking, apparently PDF's format is public, did you search for any documentation?

    @dilettante:
    Okay, I still think it's worth mentioning regarding good...
  31. Replies
    17
    Views
    438

    Re: Problem parsing a pdf

    Unless the file is very large I would suggest you simply loaded it into a String or Byte array and then parse that. Reading characters one by one from a file is much slower than just reading the file...
  32. Re: help Convert Httpwebrequest to Httpclient

    I assume you are asking for help rather than just stating you want to do something? While I can't answer your question I suggest you post your code formatted something like this:


    ...
  33. Replies
    2
    Views
    158

    Re: WIX Checkbox checked registry

    What is WIX?
  34. Replies
    3
    Views
    251

    Re: AxAcroPDF Help Please

    Given these two methods don't work and you think it is something with Adobe, have you tried reinstalling any PDF related software. I am guessing, but perhaps you also need to manually clear some...
  35. VS 2019 Re: About using a video file embedded on a resource RES file

    The root directory? Shouldn't temporary file folders be used for that?
  36. Re: special directories causes threat detection

    1. Use Path.Combine instead of the ampersand operator to build a path.
    2. Personally I prefer to use "If Not ..." instead of "If ... = False". I don't know if there is a speed difference. If there...
  37. Re: .serialization not writing version info correctly

    No, I am afraid not.
  38. Re: .serialization not writing version info correctly

    Just a guess, but if you're copy-pasting code from another project, perhaps you need to check your project level imports and settings?
  39. Re: showing a form based on value of a string containing the form's name

    1. I have no idea what you mean. - EDIT: you could use array literals: "Dim MyForms() As Form = {Form1, Form2, Form3}. That should work.
    2. "obj=Ctype("my.Forms.Form"+str(i)),Form)" - you are...
  40. Re: showing a form based on value of a string containing the form's name

    Welcome to the forum DeanTop.

    1. You could probably store all those form names in an array (or better yet, a list) and use the "i" variable as an index.
    2. Use the ampersand character ("&") to...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width