This is a sample application for "OLE Automation in Netscape."
The app registers itself as an "external streaming viewer" for an obscure file type and then responds as such a viewer. The purpose is to exercise automation in both directions.
The application provided as a Visual C++ 1.5 project. The project uses the DLL version of the Microsoft Foundation Classes (MFC). This is a 16 bit application.
The sample app sets itself up as a viewer for image/x-portable-anymap files (extension .pnm). The app. simply displays the contents of the file as ASCII. (The reason for the strange MIME type is that some servers make it difficult for non-administrators to add new MIME types. Thus, the app uses an existing but little used type.)
To use, download nswinsam.zip and unzip. Alternatively, all the files are loaded in this directory. Load all the files in this directory to any directory on your system. Then start Visual C++ version 1.5 and open the file "nswinsam.mak". Recompile.
To use the sample app:
1. Start the Netscape beta and the sample app. Exit from both. This updates the system registry.
2. Create a .pnm file with ASCII content on an HTTP server. (I chose .pnm files because it is already known to servers.)
3. Open the .pnm file with Netscape. The ASCII should appear in a window within the sample app.
I guarantee that I got this to work on my system. I also assure you that I've done absolutely no QA or testing. You get what you pay for. Let me know how it works.
Erik DeBenedictis