This simple program goes and gets the http code from a web page when you click a button.

The url that it fetches code from is entered into an edit box...
The URL defaults to
http://www.geocities.com/gacarpenter386/test1.htm   this is a tiny test page I put
up on my web site... it contains this string --> <!--MyFormColor=%green% -->

The program gets the whole web page and adds it to the end of the exe...then it alters itself on disk and restarts.... the form then displays as green because the program looks for a string in the added HTTP code that tells it what color to set the form to... so you have altered the exe in 2 ways... you added the http code to it..and you changed it's color.


If you change the url to http://www.geocities.com/gacarpenter386/test2.htm  you will add
a different page that changes the form color to blue...

If you use any other web page the color will go back to silver... and that web page will be added to the end of the exe file.... to see the http code just click the
[Display The HTML code that was added to the Exe file] button.

The http is displayed in a message box so if the web page is very long some of it will scroll off the screen and not be visible... anyway you get the idea :-)

If you connect to the web through a proxy this simple demo may not work well :-)


..Gwen..

OH! one more thing... NEVER SEND THIS PROGRAM TO MICROSOFT.COM   YOU HAVE BEEN WARNED! heeheeheehee ;-)
