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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6299393aa51fdbf3 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!feed.news.tiscali.de!news.belwue.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Newsgroups: comp.lang.ada Subject: Re: set programm icon From: Bernd.Specht@gmx.com (Bernd Specht) References: <2j6500Fu5ef7U1@uni-berlin.de> <2j7spuFubm8rU1@uni-berlin.de> Organization: No company Message-ID: User-Agent: Xnews/4.05.03 Date: 15 Jun 2004 19:34:34 GMT NNTP-Posting-Date: 15 Jun 2004 21:34:34 MEST NNTP-Posting-Host: 62.153.20.126 X-Trace: DXC=_Lj=B\OP[^TWlBlPAT_ljX:ejgIfPPldTjW\KbG]kaMXGSi?jHD8GOP4 "Tanker" wrote in news:can7h9$ahd$04$1@news.t-online.com: > Thanx Jano, it almost worked perfectly! But the programicon in the > upper left corner of the programwindow is still the standardicon and > not my programicon (shown in the explorer!) > Maby someone can tell my the parameter for the gnat compiler? > > Thanx a lot !!! Hi, it works for me since GNAT 3.12p. I don't use RCL, I use RC and CVTRES which comes (for example) with Aonix (the special edition included in Barnes book). Here is what I do: In the resource-file: #include "resourceid.h" // Icon AM_ICON ICON DISCARDABLE "GENERIC.ICO" In the ada-source: wndclass.hIcon := LoadIcon (hInstance, LPCSTRofIntResource(ResourceID.AM_ICON)); You do not need the linker_options. When you work with an actual version of AdaGide, then you can include your resource-file in the build process: "Tools" -> ""Resource Options" -> "Resource file" Enter here the name of your resource-file. You can choose different resource compilers here: "Tools" -> ""Resource Options" -> "Resource compiler"