Finally I managed to get OCAF to save my files, it took a lot of time to find out about how to setup everything to work, maybe a section in the documentation that explains how to use OCAF to load/save documents would be useful.
As it is now, there are no decription at all on how to create the TDocStd_Application class you need to handle everything, there are also not a word on what the resource name and format is used for or how to set it up, this would help a lot.
Now, as I said I got it to work and I can save my document to a .shp file, this use the PKAppViewer.dll to do it, I stole this file and the resource file from the ShapeViewer application.
Is this dll specific for the shapeviewer or can I use that in my own applications, or do I have to create my own ?
And also is it ok to include the PKAppViewer dll with my application in that case ?
If I do need to create my own storage driver, is there any exaple available to peek at ?