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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,2d2580ac72b4a4c2 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,2d2580ac72b4a4c2 X-Google-Attributes: gid103376,public From: "Nick Roberts" Subject: Re: DLL files Date: 1998/02/20 Message-ID: <01bd3e21$e25c8900$a8fc82c1@xhv46.dial.pipex.com>#1/1 X-Deja-AN: 326984051 Content-Transfer-Encoding: 7bit References: <34E9EEB7.4723FD1E@vci.net> <01bd3cd8$2ecf9340$LocalHost@xhv46.dial.pipex.com> <34EC8B90.EEDC9238@vci.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Organization: UUNet UK server (post doesn't reflect views of UUNet UK) Newsgroups: comp.lang.c++,comp.lang.ada Date: 1998-02-20T00:00:00+00:00 List-Id: OK, but if you write a DLL which goes direct to the SVGA hardware (bypassing Windows), Windows is probably not going to like it! Assuming (as I am) that your Ada compiler targets DOS (or bare PC), perhaps what you need to do is to write an Ada library unit (presumably a package) -- forget the DLL -- which controls the SVGA board directly. If the compiler hosts under Windows, so much the better (richer environment), but then to run (you _might_ be able to run in DOS box, otherwise) you will have to 'shut down to DOS', and run there. I'm afraid I don't have SVGA data to hand -- I'll a little rummage -- but if you can get your hands on that, I reckon the package should be pretty easy to knock up. I hope this is some help to you. If I'm getting the wrong end of the stick (as I often do ;-), enlighten me! == Nick Roberts ================================================ == Croydon, UK =========================== == ================ == Proprietor, ThoughtWing Software ========== == Independent Software Development Consultant ====== == Nick.Roberts@dial.pipex.com ==== == Voicemail & Fax +44 181-405 1124 === == == == I live not in myself, but I become == === Portion of that around me; and to me == ==== High mountains are a feeling, but the hum == ======= Of human cities torture. =========== -- Byron [Childe Harold] Andy Perkins wrote in article <34EC8B90.EEDC9238@vci.net>... > Nick Roberts wrote: > > > Use of DLLs implies Windows, which implies availability of the Windows GDI > > (Graphical Device Interface), which is a part of the Windows API, and will > > drive SVGA as well as umpteen other graphics protocols. So it sounds to me > > like you just want to use the Windows API direct. > > That would be the best course, if I were planning to use the finished > product in a C program. The DLL will eventually be converted to an Ada library > file and imported into an Ada program. Since the DLL can be converted to an > Ada library file, Ada can use (in a manner of speaking) DLL files, but as far > as I know, there is no way to use the Windows API from within Ada.