Solved

Interrupt Handling under Windows 95

Posted on 1997-06-29
5
303 Views
Last Modified: 2013-12-03
How can I implement the interrupt handling under Windows
95 ?(I use the Borland 4.02 or 5.0 )
   In fact, I will use the hardware interrupts which comes from a card attached the PC slot.And I want to write an
ISR under Windows 95.
    Please give me some information about this question.
0
Comment
Question by:yucel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
tonp earned 50 total points
ID: 1399547
A 32-bit Win95 application can't install an ISR. You can only do this with a VxD (virtual device driver). A 16-bit application can install a ISR, with the use of DPMI calls for real-mode or protected mode handlers. use DPMI (int 31h) 201h or 205h for this, remember that you must perform selector/segment translation for this. Have a look a Ralf Brown's interrupt list for DPMI details.


0
 

Author Comment

by:yucel
ID: 1399548
Thanks a lot,
Yes,I took an answer to my question but not excellent.
You say "You can not ISR in 32bit windows.You must write a VxD code for making this." But I ask,How?,How can I write Vxd to implement Interrupt handling in win32?
        if You give me some information for this subject ,I will be so glad.(if you give me an example code for this VxD ,it will be so good)
        *****Yucel Dursun  (from Turkey) *****
0
 

Author Comment

by:yucel
ID: 1399549
Thanks a lot,
Yes,I took an answer to my question but not excellent.
You say "You can not ISR in 32bit windows.You must write a VxD code for making this." But I ask,How?,How can I write Vxd to implement Interrupt handling in win32?
        if You give me some information for this subject ,I will be so glad.(if you give me an example code for this VxD ,it will be so good)
        *****Yucel Dursun  (from Turkey) *****
0
 
LVL 2

Expert Comment

by:tonp
ID: 1399550
Writing a VxD is only possible if you have the DDK (Device Driver Kit). The only way to get this is trough a MSDN Level 2 (or higher) subscription (look at www.microsoft.com). It comes complete with samples, however be prepared for a steep learning curve. Another way is to use a product like Vireo's device driver kit (www.vireo.com) which should make startup a lot easier. Look for a VxD faq at www.chsw.com.
0
 

Author Comment

by:yucel
ID: 1399551
Thanks a lot for your answering.
But I still have a problem with VxD. I have DDK kit.But in this kit
many low level programs were written in assembly language.It is too hard to deal with them.But I'm using C language in genaral.
        Can you give me a book name about VxD writing (but specially ,in this book there must be "interrupt handling" section)
except the "System Programming for Windows 95" written by Oney ,Microsoft press.
        Again I thank you for your interestings..  (**Yucel**)  
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question