Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

dos_setvect prob in WIN16

Posted on 1997-02-10
1
Medium Priority
?
513 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
[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
1 Comment
 
LVL 1

Accepted Solution

by:
donc earned 100 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

670 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