Re: include files

> Hy,
> 
> we are working on Amaya's source code and we have a question about the 
> possibility to include a file across different directory. We'd like to use a 
> variable of type AnnotMeta in viewapi (a file in the directory 
> \thotlib\view), but AnnotMeta is a type defined in annotlib.h (a file in the 
> directoy annotlib). We have added "include annotlib.h" in viewapi, but there 
> are errors during the compile time.
> Why? What we have to do?

The file viewapi.c is part of the Thotlib library which is used by the Amaya 
application
and the library works with its include files but not with include files of the 
application.
If you have a specific treatment to do when a view is open, you have to use 
Thot events
and add the specific code in the application.

By example the file EDITOR.A associates the Amaya function ViewToClose to the
closing of a view:

ViewClose.Pre -> ViewToClose;

See the "Thot Application generation manual" that explains how to generate 
menus and the mechanism of Thot events.

> Thanks,
> 
> Francesca
> 
> _________________________________________________________________
> Invia e ricevi la posta di Hotmail sul tuo cellulare: http://mobile.msn.com
> 
> 

Received on Wednesday, 22 May 2002 09:48:34 UTC