From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,55756e819dcf8ad0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-04 08:47:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!teaser.fr!enst.fr!not-for-mail From: "Beard, Frank Randolph CIV" Newsgroups: comp.lang.ada Subject: RE: Using DOS Functions in Ada Packages Date: Wed, 4 Jun 2003 11:45:06 -0400 Organization: ENST, France Message-ID: NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: avanie.enst.fr 1054741633 10074 137.194.161.2 (4 Jun 2003 15:47:13 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 4 Jun 2003 15:47:13 +0000 (UTC) Cc: Debs Wisbey To: Return-Path: X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Using DOS Functions in Ada Packages Thread-Index: AcMqqaJ+ZDOHQtO0QdKXIZSqBqLvBwABLj2g X-OriginalArrivalTime: 04 Jun 2003 15:45:11.0122 (UTC) FILETIME=[483F3B20:01C32AB0] X-Scanned-By: MIMEDefang 2.1 (www dot roaringpenguin dot com slash mimedefang) X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:38610 Date: 2003-06-04T11:45:06-04:00 Well, chances are extremely high those routines don't exist with your new compiler. If you need those exact routine name, you could take the known spec, create your own bodies, call the necessary routines supplied by the new compiler to perform equivalent operations, and then compile them into your new executable. Do you need the exact names? If not, just use the new compiler's routines to accomplish the task. Or, if you're just doing console IO,=20 then just use the standard Ada Text IO routines: Ada.Text_IO.Get .Put .Get_Line .Put_Line ... What's the original compiler and what's the new compiler? Frank -----Original Message----- From: Debs Wisbey [mailto:debs.wisbey@amsjv.com] Sent: Wednesday, June 04, 2003 10:53 To: comp.lang.ada@ada.eu.org Subject: Using DOS Functions in Ada Packages Dear All, I am new to using DOS in general, but especially when it comes to building programs and using it's the DOS functions (e.g. 02H 'Write to Standard Output Device'), and I currently have a software program that is written in Ada and uses a DOS package that is specific to the compiler. I am trying to port the software to a new compiler and do not have the package body for the DOS package. I do, however, have the specification that tells me what the elements of the packages are meant to do and the appropriate DOS function calls. How do I use these procedures/functions from within my Ada program? And do I need any specific files/software to use them? (Please include and example or any references to a website with an example if possible). Thank you for any help that you can give me, Debs. _______________________________________________ comp.lang.ada mailing list comp.lang.ada@ada.eu.org http://ada.eu.org/mailman/listinfo/comp.lang.ada