Solved

dos_setvect prob in WIN16

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

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…
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…
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…

710 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