Re: Binding multiple source files
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Feb 09, 2005
- 495 views
I wrote: ><snip> >>Is this possible and how do I call routines and procedures in >>different files from a menu system in one file? > >Yes, using globals. A simpler answer might have been define the menus near the end of the program (but still before WinMain). For example in Edita, eamenus.ew is included on line 1237 of 1939, and is 8th out of 9 include files, so it can call anything defined in well over 2/3rds of the code. It could even be much further down, apart from one routine (toggleSpecials) , which is there to avoid making ToolShowS global. Regards, Pete