I have created a program that does various functions. I would like to now separate these functions and the dialog controls associated with them into plugins. This way I can give the end user just the plugins that they need. Below is the process that I was going to try:

1. Move all of the dialog controls and procedures associated with this function into a DLL.

2. Modify the main program so that it looks in the plugin directory for any functions and then add the dialog controls to the main dialog.

Is this the correct way of going about this? Do you have any helpful words of advice before I embark on this?