Thread: function pointers

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Darkness Prevails Dark_Phoenix's Avatar
    Join Date
    Oct 2006
    Location
    Houston, Texas
    Posts
    174
    Right. So if I am having to go in and map all the menu string-function pointer pairs anyway, then is there any point in having the external text file? Seems like it would be just as easy to hard code everything and not have to ess with the text file at all. The more I think about it the more it seems like this "Menu Manager" thing is kind of pointless.
    Using Code::Blocks and Windows XP

    In every hero, there COULD be a villain!

  2. #2
    Registered User
    Join Date
    Jan 2009
    Posts
    31
    Quote Originally Posted by Dark_Phoenix View Post
    Right. So if I am having to go in and map all the menu string-function pointer pairs anyway, then is there any point in having the external text file? Seems like it would be just as easy to hard code everything and not have to ess with the text file at all. The more I think about it the more it seems like this "Menu Manager" thing is kind of pointless.
    Well, it would allow users to customize the user interface. One use could be internationalization (different languages for menus). You could go a step further to include accelerator keys, and possibly toolbar items, if applicable. All of these would have actions specified by the same set of action identifiers (the strings in the aforementioned map). Plugins could expose their actions through the same interface (via. registration with an action manager), so actions not built into the menus could also be customized. It does make much more sense in conjunction with an application hosted programming environment though. All of the programs that I've used with this feature also include a hosted programming language or environment of some sort.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM
  2. Problem with function pointers
    By vNvNation in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2004, 06:49 AM
  3. Staticly Bound Member Function Pointers
    By Polymorphic OOP in forum C++ Programming
    Replies: 29
    Last Post: 11-28-2002, 01:18 PM
  4. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM
  5. function pointers and member functions
    By thor in forum C++ Programming
    Replies: 5
    Last Post: 03-19-2002, 04:22 PM