Link to home
Start Free TrialLog in
Avatar of TWilbert
TWilbert

asked on

DOS Interrupt and POKING the register

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.
Avatar of TWilbert
TWilbert

ASKER

Edited text of question
You're not going to be able to POKE under windows. If you do, you'll trigger an immediate GPF.


Which DOS interrupt are you trying to trigger?
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.
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.
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.
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.
ASKER CERTIFIED SOLUTION
Avatar of RUSH
RUSH

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.