Solved

dos_setvect prob in WIN16

Posted on 1997-02-10
1
496 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 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