Input Needed on Property Pages in External DLLs
-
I'm working on an application that processes several kinds of file formats. The parsing and processing of the format take place in external plug-in libraries, implemented as DLLs. The parsers and processors are COM objects, implementing a few simple custom interfaces. The problem is this: When importing files into the application we use a wizard with three pages (Select File->Define Settings->Finish). The first page of the wizard finds the correct external library to use for the file provided by the user, and then the library should create the second page with settings that apply to this file format only. This is where I get stuck. One option would be to let the libraries add the page with something like this:
HRESULT GetPropertyPage(PROPSHEETPAGE** ppPage);
However, the server application is implemented in MFC, and CPropertySheet doesn't play very well with thePROPSHEETPAGE
struct. As far as I can see, there's no way to construct aCPropertyPage
around aPROPSHEETPAGE
. This solution would require that the first and last pages are implemented without MFC (not a major problem, but inconvenient). Another option would be to venture into the world ofIPropertyPage
and other pre-defined interfaces. I have absolutely no idea on what to choose here, any input would be appreciated. Thanks