- {
- wxChar buf[256];
-
- wxGetTempFileName( _T("wxhtml"), buf);
- info = new wxInetCacheNode(buf, content);
- m_Cache.Put(right, info);
-
- { // ok, now copy it:
-#if defined(__VISAGECPP__)
-// VA thinks this is an ambiguous call
- wxFileOutputStream sout((wxString)buf);
-#else
- wxFileOutputStream sout(buf);
-#endif
- s -> Read(sout); // copy the stream
+ {
+ wxString tmpfile =
+ wxFileName::CreateTempFileName(wxT("wxhtml"));
+
+ { // now copy streams content to temporary file:
+ wxFileOutputStream sout(tmpfile);
+ s->Read(sout);