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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ec05594a534e9fb5 X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: resources Date: 1998/06/19 Message-ID: #1/1 X-Deja-AN: 364234691 References: <01bd9b77$90e3bea0$86b537c3@carlos> Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Newsgroups: comp.lang.ada Date: 1998-06-19T00:00:00+00:00 List-Id: "Carlos Piqueres Ayela" writes: > Hello ! > > A simple question. > How can I compile a resource file (for W95 *.rc) with GNAT 3.10 ?? > I'm trying to do I little program in C and calling it from an Ada program. > And I wanted to include some resources in the C program (menus and things > like that) directly in C, not using tha Win32Ada. Under a "typical" Windows Integrated Developement Environment (IDE), the IDE knows which compiler to call for each source file; the C++ compiler for foo.cpp, the C compiler for foo.c, and the resource compiler for foo.rc. GNAT provides a command line environment, which knows about Ada and C, but not resources. So you have to call the resource compiler yourself. This is easily automated with make files. Consult your Windows IDE about what the resource compiler is called. I don't think there is a gnu one; look on Jerry Van Dijk's page http://stad.dsl.nl/~jvandyk/ - he has the best collection of Ada on Win95 stuff. > > Thank you. -- Stephe