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=0.7 required=5.0 tests=BAYES_00,INVALID_DATE, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!bionet!agate!eos!aio!riddler!yow From: yow@riddler.Berkeley.EDU (Billy Yow 283-4051) Newsgroups: comp.lang.ada Subject: Re: Ada interface to Windows 3.0 Keywords: Windows 3.0 Message-ID: <1991Apr2.085938@riddler.Berkeley.EDU> Date: 2 Apr 91 14:59:38 GMT References: <405@esl.ESL.COM> Sender: news@aio.jsc.nasa.gov (USENET News System) Reply-To: yow@riddler.Berkeley.EDU (Billy Yow 283-4051) Organization: nasa-jsc List-Id: >Can anyone tell me if there exists an Ada interface to Windows 3.0? How >can I get a copy? Before you can have a binding to Windows 3.0 you need an Ada compiler that supports Windows' code developement. So far I know of no Ada compiler that supports Windows. (But there are C, C++, Pascal, Modula-2 and other languages that support Windows. I guess Ada vendors are not interested in the Windows market. :-( ) Support for Windows requires the following: 1 Uses the small memory model, which is the preferred memory model for Windows. 2 Supports the DMPI standard for memory managment. 3 Will generate C interface calls using the Pascal style of parameter passing. This is so you can have ... CALL BACKS ... 4 Generates the correct prolog and epilogue code for windows. 5 A debugger that works with Codeview or inside of windows. 6 A Resource Compiler 7 Tools to development Icons, Bitmaps, Fonts and the other stuff used by Windows. When an Ada compiler supports 2, 3 and 4 then an interface to Windows 3.0 can be written. You can use the large memory model in Windows but there are problems with using the large memory model. I guess not having a debugger would be okay but I would not want to build a very large program. :-( A resource compiler converts a normal EXE file into a Windows EXE file and adds the Icons, Bitmaps and other Windows' stuff to the EXE file. Six and Seven are both in the SDK, but the Borland C++ and Pascal compilers don't require the SDK or any other tools from Microsoft. Also the C++ compiler is $325 and the Pascal compiler is $200. Good luck ever seeing an Ada compiler that supports Windows and provides all of the tools required for that price. Bill Yow yow@sweetpea.jsc.nasa.gov