Solved

Pascal -> Delphi convert help needed !

Posted on 2004-04-06
11
165 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
Comment Utility
you can use WinIO library from http://www.internals.com/

0
 
LVL 19

Expert Comment

by:Melih SARICA
Comment Utility
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
Comment Utility
Ok, no interrupt handling command with Delphi....

What about inline ASM ? is it possible with it ?

0
 
LVL 5

Expert Comment

by:scrapdog
Comment Utility
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:simoha
Comment Utility
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
Comment Utility
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
Comment Utility
use the library I posted above... it should work on all Win platforms
0
 
LVL 6

Expert Comment

by:mirzas
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Mydac connection data base issue 3 106
Delphi XE10, MySQL Query 4 107
Delphi selector screen 2 57
Downloading email attachments 2 53
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now