Click to See Complete Forum and Search --> : Implementation of a VIEW (for MDI Child Window) in a DLL...


Olix
June 2nd, 1999, 05:46 AM
I want to make the implementation of a View for a MDI Child window in a DLL(or somehow I can change it).

Can I?

Ex:
I want to implement a CTreeView that I will use in declaration of the project (multi)Document Template BUT I may have to change this implementation for this view to CListView in a different use of the project. I other words the application will be the same but the view will "do" something else.

If you want to help me but you need to know more plese contact me at olix@posta.ro or send a private message.

Thankyou very much.
OLIX

David Langis
June 2nd, 1999, 06:49 AM
I don't think there is any special considerations regarding the implementation of a view in a DLL. The only thing that you must do is export the class from the DLL.

I think an MFC Extension DLL would be a good choice.

Jason Teagle
June 2nd, 1999, 07:15 AM
I think I understand what you want - you want the main app to decide which type of view to use at run time, but to be able to avoid all the work of handling the different types - you want the DLL to take care of that, and your app just makes a consistent set of calls which will do the job no matter which view is chosen. Right?

If that is the case, I have to ask: The different types of view (tree control and list control, for example) operate in largely different ways - so want kind of common functionality do you want from them (i.e., what set of interface methods would you expect them all to implement in their own way)? Also, would it be so cumbersome to have all the necessary code built into your app, and just use the different parts of the code for the different types of view, as necessary? Or are you hoping for a small program size, so you want the minimum code necessary?

If I have hopelessly misunderstood what you want, e-mail me (jteagle@solartron.com) and explain.