[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Runtime AES application name change?



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 <stdio.h>
> # 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
>