From owner-mint@fishpool.com Mon Feb 17 08:26:01 2003 Date: Mon, 17 Feb 2003 08:18:01 +0100 (CET) From: Standa Opichal X-X-Sender: stop@mail.idoox.com To: aranym@nightmare.sh.cvut.cz cc: mint@fishpool.com Subject: Re: [MiNT] Runtime AES application name change? In-Reply-To: <00e401c2d468$c1dd2c60$b10c63d9@blaszak> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-2 Content-Transfer-Encoding: 8BIT X-Virus-Scanned: by AMaViS Delivered-To: mint@fishpool.com Delivered-To: mint@lists.fishpool.fi X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: opichals@seznam.cz Precedence: bulk List-help: List-unsubscribe: List-ID: X-List-ID: Hi Konrad! I'm really sorry for wasting your time with this kind of ignorance. I simply thought that I know AES API well enough.... and I don't. Yes, this is exactly what I needed to do. Thank you very much for finding this for me. STan On Fri, 14 Feb 2003, Konrad Kokoszkiewicz wrote: > >>> The names for the AES processes, either for the "Desk" menu or for > >>> the appl_find()/appl_search() are set with menu_register(). > >> > >> Not true. > > I also wrote: "The first argument decides which of these names are changed." > > Today I found some time to download the TOS release notes, unpack it, read > and make a test program. And, Standa, you simply didn't check the documents > I was poiniting you to. TOS release notes say this about the first argument > of the menu_register(): > > me_rapid - The AES process identifier of the desk accessory or > application. ... If this value equals -1, the > me_rpstring will be used to replace the current > accessory's process name. > > The accessory (or application) PROCESS NAME, it is said. And indeed: > > # include > # include "/usr/GEM/include/gem.h" > > int > main() > { > short apid; > short c2 = 0; > > apid = appl_init(); > > menu_register(-1, "TOJA "); > > c2 = appl_find("TOJA "); > > printf("c2 %d\n", c2); > > return 0; > } > > /* EOF */ > > If you link this to an executable called 'foobar', and run, the appl_find() > will return the apid, even if the search is done for the name 'TOJA '. > Isn't this what you wanted? > > CVV > > -- > Konrad M.Kokoszkiewicz > http://draco.atari.org > > ** Ea natura multitudinis est, > ** aut seruit humiliter, aut superbe dominatur (Liv. XXIV,25) > ************************************************************* > ** Taka to juz natura pospólstwa, albo sluzalczo sie plaszczy, > ** albo bezczelnie sie panoszy. > > _______________________________________________ > Aranym mailing list > Aranym@nightmare.sh.cvut.cz > http://nightmare.sh.cvut.cz/cgi-bin/mailman/listinfo/aranym >