}// CHTMLFileGen //------------------------------------------------- // LoadGIFs // // This function will pull the GIFs out of the resource // file and stash them in a temp directory somewhere //------------------------------------------------- private static void LoadGIFs() { int iLen = m_sGIFs.Length; for (int i = 0; i < iLen; i++) { Byte[] pGif = CResourceStore.GetGIF(m_sGIFs[i]); String sOutFileName = Path.GetTempFileName().ToLower(CultureInfo.InvariantCulture); // GetTempFileName actually creates a file. We don't want that File.Delete(sOutFileName); // The filename we have has a '.tmp' extension. We need a // .gif extension to our file StringBuilder GoodFilename = new StringBuilder(sOutFileName); GoodFilename.Replace(".tmp", ".gif"); sOutFileName = GoodFilename.ToString(); // Now let's write this info BinaryWriter bw = new BinaryWriter(File.OpenWrite(sOutFileName)); bw.Write(pGif); bw.Close(); // Add this filename to our list of stuff m_scGifs.Add(sOutFileName); } }// LoadGifs