CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2015
    Location
    Kolkata
    Posts
    13

    Use of _disable, _enable, intr in Borland C++ 5.5

    I want to use _disable, _enable, intr functions in C code, all are used to enable or disable interrupts. OS- windows 7, compiler- Borland C++ 5.5. I don't know the syntax.
    Kindly help, how to use this.

  2. #2
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,824

    Re: Use of _disable, _enable, intr in Borland C++ 5.5

    For 32/64 bit code for Windows 7 you don't enable/disable interrupts. Handling interrupts was part of old DOS code which has now been consigned to history. You need to design your program differently for Windows 7. If you really need to deal with interrupts for a device then you need to write a specific device driver which is quite different to writing a 'normal' c/c++ program.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. 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/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  3. #3
    Join Date
    Sep 2015
    Location
    Kolkata
    Posts
    13

    Re: Use of _disable, _enable, intr in Borland C++ 5.5

    I want to deal with interrupts. How can i design the codes? Sir please suggest the topic to study from which i will get help.

  4. #4
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,824

    Re: Use of _disable, _enable, intr in Borland C++ 5.5

    Then you need to code an appropriate driver. You'll need the Windows DDK/WDK. For an intro see https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx and links from that page.

    Note that there is a specific forum for driver development at http://forums.codeguru.com/forumdisp...er-Development to which I suggest you post any further queries re driver development.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. 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/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    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

Featured