I currently have a MFC project (loosely) utilizing the doc/view architecture. This application contains all business logic as well as GUI code. I'm looking to provide an API-like access to this that would be accessible via .NET. In doing this, I'd like to minimize re-write, so I'm wondering what the options are?
Is there a way to incorporate a .NET interface around the MFC app while still utilizing the MFC entry/startup as-is? So that the current app could be run and have another app dynamically get a handle to the app and utilize the API?
Any other approaches that may make more sense?
[EDIT] The end goal would be to break out the business logic into a library and the GUI to some sort of new framework (winforms, wpf, something...) For now, I'm looking for the way to the first goal of basic API control from a third party application. With this knowledge is it worth doing the intermediary step of a COM interface then eventually when the logic is pulled into a library writing a .net wrapper for basic API access?