Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

'file://' Protocol

7 views
Skip to first unread message

fregate

unread,
Aug 20, 2009, 2:19:25 AM8/20/09
to
Good day to all

I'm trying to use PassthrougApp for process html (and js) files before
they appear in webbrowser ctrl (translation process).
All files placed in local drive (this is desktop app). I registered
'file' namespace for handle it.

CMainDlg::InitDialog(...)
{
// ...
NewMetaFactory::CreateInstance(CLSID_FileProtocol, &m_spCFFILE);
hr = spSession->RegisterNameSpace(m_spCFFILE, CLSID_NULL, L"file", 0,
0, 0);
//...
}

And loading local file (d:\project\app\ui\about.html, for example)
about.html is process through
ReportProgress
ReportData
Read
but all include files - don't, but its urls (file://d:\project\app\ui
\jquery.js, for example) processed in OnStart, ReportProgress,
ReportData... but don't process in Read
.js files has text/javascript content type

If I register Http Protocol, all files was processing correctly (for
remote .html files).

With best regards,
Anton

0 new messages