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=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,df430594845cd83d,start X-Google-Attributes: gid103376,public From: Dobes Vandermeer Subject: Windows, DirectX, DLLs, and Gnat Date: 1998/08/13 Message-ID: <9808131610.AA3749854@camelot>#1/1 X-Deja-AN: 381183161 Sender: Ada programming language Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU Newsgroups: comp.lang.ada Date: 1998-08-13T00:00:00+00:00 List-Id: I am trying to write a game in Ada. It will be multi-platform, but I am starting with Windows. I am just learning Ada programming, and I am also new to Windows programming.. I guess I like to swim upstream... Anyway, I have several questions: 1) How do I get to WinMain? I need my hInstance for DirectX, and I do not know where it goes when my Ada program starts up. 2) I understand that I have to make a .lib file, and write some pragmas to interface to the Windows DLL's, but how do i a) Ensure I am using the correct parameter passing system b) Ensure that the structures going to and from these functions will be the right size, with the right fields 3) I am planning to draw by rendering the full image into a buffer, and blitting it to the graphics card using DirectDraw. How do I create a dynamically allocated storage for the drawing buffer? 4) Is there a FAQ for this newsgroup? Where? 5) Are there any valuable online resources specifically for people interested in coding Ada under Win32 that I should know about? 6) Is there a package that already does this for Ada? Thanks in advance, Dobes