Solved

DOS Interrupt and POKING the register

Posted on 1998-12-11
9
396 Views
Last Modified: 2010-05-03
We are currently using a product called Accumail to clean customer addresses.  We have been able to use this product when developing in COBOL, C, and QBasic.  How do you achieve a DOS Interrupt and also send and retrieve values to the register?  We use a command called POKE in QBasic if that is any assistance to you.
0
Comment
Question by:TWilbert
9 Comments
 

Author Comment

by:TWilbert
ID: 1449606
Edited text of question
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1449607
You're not going to be able to POKE under windows. If you do, you'll trigger an immediate GPF.


0
 
LVL 5

Expert Comment

by:scrapdog
ID: 1449608
Which DOS interrupt are you trying to trigger?
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 2

Expert Comment

by:polygon
ID: 1449609
I'm not sure, but you may try writing a small DOS program (I've done it in Pascal to get a memory contents at a given address). This program would receive some parameters and may return a code (0 to 255) you can get from CreateProcess API. If a single byte is not enough, the program may write a file and you'll read it from VB then.
0
 
LVL 5

Expert Comment

by:AnswerTheMan
ID: 1449610
as for the Registry : you have 2 functions in VB:
GetSettings(4 parameters) & SaveSettings(4 parameters).
u can read and write very easily to and from registry with those
functions.
as for interrupts : never tried that in VB, but u can give a try
to write  a Dos app. in C with them interrupts, and execute it
from VB code with a Shell command. can't see a reason for not
working as long as it WIN95 as not NT.
0
 

Author Comment

by:TWilbert
ID: 1449611
AnswerTheMan, I appreciate the effort but its information about  interacting with the register I'm looking for, not the registry.

Srapdog, the DOS interrupt I'm trying to trigger is 47.
0
 
LVL 2

Expert Comment

by:ivi
ID: 1449612
Just my $0.02
1. You can not make calls to the DOS/BIOS under Win32 at all
with the *any* programming language, not only VB.
2. Under Windows 95 you can write VxD, communicate with
this driver via DeviceIOControl() API call.
3. Under Windows NT it is impossible even inside of the driver.
0
 

Accepted Solution

by:
RUSH earned 100 total points
ID: 1449613
If you use Vb 3.0 or Vb 4.0 16 bit there is a file called
vbint.zip you can download from:
http://www.Filelibrary.com/contents/Windows/74/14.html
Don't worry registration is free.
or do a web search for vbint.zip (I got mine off aol)
I believe that it will only work in 16 bit VB but it does allow Dos interrupts from Windows 3.1 or 95(95 maintains 16 bit compatibility)it probably won't work in NT.
Check it out!  
0
 

Author Comment

by:TWilbert
ID: 1449614
Rush, I searched for the file at the site you have listed but it was  nowhere to be found.  The software company for the product we are using is in the process of creating a DLL for us to use.  Thanks for all of the suggestions.

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

840 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