Thanks for your help. I've decided to use an OLE Structured Storage library from Eduardo Morcillo's site (http://www.mvps.org/emorcillo/en/index.shtml). I modified the library so the IStorage pointer returning function is made public rather than a friend function. This appears to work - a storage file is created and when I open a RTF file containing a BMP, a BMP is stored in this file. However, I still get errors after the call to GetNewStorage and the image is not displayed in the control - the error message refers to invalid memory access and occurs in the Open method call of the ITextDocument interface which I've wrapped in this control. I'm going to do some more experimentation to see if using alternative more-standard methods such as LoadFile gives the same errors. I'll get back to you with the results and a more detailed error message description.
Thanks again for all your help. =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
