Solved

dos_setvect prob in WIN16

Posted on 1997-02-10
1
492 Views
Last Modified: 2013-12-04
I have a WIN16 DLL written using msvc 1.52 and I now want it to be able to revecter an interrupt to my own ISR.  I was planning on using the _dos_getvect and _dos_setvect calls but where getvect seems to be ok., dos_setvect fails the link as an unresolved external.  A quick check in the lib files and dos.h revealed that the setvect function is specifically excluded for WINDOWS apps, even though the on-line docs indicate that it should be ok. for WIN16 and WIN16 DLL's.  At first I assumed that the on-line docs were incorrect, and that there was some good reason for dissallowing that call, but then I discovered that the Borland 4.5 compiler does not have the same restriction.

So the question is:  If dos_setvect is not the correct way to revector an interrupt in a WIN16 DLL, what is?
 
0
Comment
Question by:jpharr
1 Comment
 
LVL 1

Accepted Solution

by:
donc earned 50 total points
ID: 1298851
Assuming this is not a system reserved vector, you can just write the 3 line stub assembly file and make the INT 21 setvect call.  Works fine from 16 bit code under win 3.1.  I can write that code for you if you wish to ask another question :-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now