Results 1 to 3 of 3

Thread: Writing Interrupt Service Routines

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2005
    Location
    ottawa canada
    Posts
    41

    Cool Writing Interrupt Service Routines

    Hi,
    I have a device (a GPS) that sends me an interrupt every 3 seconds. I was wondering, how do I write code in VB.NET that accepts the interrupt (that handles the interrupt, ie interrupt service routine)?

    I have some related c++ code:

    interrupt (INTERRUPT_VECTOR) IntServiceRoutine(void) {...}

    but I do not know the equivalent code for VB.NET.

    Can anyone pleaseeeeee help me?

    Thanks so much

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    Re: Writing Interrupt Service Routines

    So if you have the c++ code you can either have a public function on c++ dll that VB.NET can call it, or you would need to create everything from scratch.
    To try to fix your c++ in vb.net is trivial to say the least.

    I shouldn't but..
    Take a look here:
    https://www.tangiblesoftwaresolution...r_details.html
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  3. #3
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    996

    Re: Writing Interrupt Service Routines

    Is the C++ code for Windows os and for a user .exe, a .dll, a service .exe or a device driver? From the snippet posted it may be for a drive driver?
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++23 Compiler: Microsoft VS2022 (17.6.5)

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