Hi!
The topic on Embedded Apps and Document Handlers says that i have to overload CDocument::OpenFileL()? but how do i exactly overload it? what functions do i put inside there?
Hi!
The topic on Embedded Apps and Document Handlers says that i have to overload CDocument::OpenFileL()? but how do i exactly overload it? what functions do i put inside there?
It would be nice if you wrote it in this forum.
Thanks.
well, it depends on what you are trying accomplish. I don't know if it works for embedded apps, but you can try something like this to change a doc file...
Code:CFileStore* CMyDocument::OpenFileL(TBool aDoOpen,const TDesC& aFilename,RFs& aFs) { Process()->SetMainDocFileName(KFileStore); return CEikDocument::OpenFileL(aDoOpen, KFileStore, aFs); }
Hi,
Thanks for your response.
I'm opening the file in the AppUi class and returning null to the framework.
Now my problem is that I want my app to exit itself, but if I call Exit() before return NULL the framework gives me an error. So I was thinking how to auto-exit, maybe setting a RTimer for a short time.Code:CFileStore* CmimeDocument::OpenFileL(TBool aDoOpen, const TDesC& aFilename, RFs &aFs){ iAppUi->OpenFileL(aFilename); return NULL; }
Thanks
Toni