Solved

Pascal -> Delphi convert help needed !

Posted on 2004-04-06
11
171 Views
Last Modified: 2010-04-05
I need help to convert following code for Delphi :

http://www.bsdg.org/SWAG/INTERRUP/0022.PAS.html
0
Comment
Question by:simoha
11 Comments
 
LVL 6

Accepted Solution

by:
mirzas earned 500 total points
ID: 10764048
you can use WinIO library from http://www.internals.com/

0
 
LVL 19

Expert Comment

by:Melih SARICA
ID: 10764210
U can not use this code in windows nt systems (after win 2000)

and u can convert it to delphi.. there is no Interrupt handling Commands in delphi..

Can u tell wot r u trying to do ..  then we can help u about it


0
 

Author Comment

by:simoha
ID: 10767985
Ok, no interrupt handling command with Delphi....

What about inline ASM ? is it possible with it ?

0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 5

Expert Comment

by:scrapdog
ID: 10768950
Yes, you can do inline ASM, but the ASM in the code you refer to accesses ports, which is something you don't want to do in Windows.
0
 

Author Comment

by:simoha
ID: 10771629
WHY ?!?!

What is problem with that ?

With Win98 you can easily access i/o ports.

WHat do you mean ?
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 10772827
in Win2k/NT/XP, the software is not allowed to have direct access to I/O ports without a driver.
0
 
LVL 6

Expert Comment

by:mirzas
ID: 10773529
use the library I posted above... it should work on all Win platforms
0
 
LVL 6

Expert Comment

by:mirzas
ID: 13200886
From Internals.com

This library allows direct I/O port and physical memory access under Windows 9x/NT/2000 and XP. Version 2.0 provides faster I/O port access, better memory mapping support and can be used from non-administrative accounts under Windows NT/2000 and XP.


Too bad if you didnt use it.
0

Featured Post

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Working with hours 3 65
Dev Express grid collapse 2 45
DBGrid or StringGrid ? 6 105
Firemonkey BASS_Init into a thread 17 33
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 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