1 to refresh the menu items at runtime,
2 how to delete the memory, which are dynamically created at runtime
Printable View
1 to refresh the menu items at runtime,
2 how to delete the memory, which are dynamically created at runtime
Answering question # 2 -
Memory can by allocated dynamically using malloc, or new.
For the former, use free.
For the latter use delete, or delete [] if you allocated an array.
If you're using MFC, implement OnUpdate handlers for your menu commands.Quote:
Originally Posted by ravirams