MFC Pinball Sample
The Pinball sample shows how to process a form which has several
radio buttons. When called without parameters, the sample will
display this form. If you select a pinball game, the form will
send the extension a request that looks like this:
pinball.dll?MfcISAPICommand=GetImage&Favorite=1
where the value of the Favorite
parameter actually
indicates the machine choice you have made. In response, the sample
will use the CHttpServerContext::TransmitFile()
function
to send you a large graphics file showing the backglass artwork for
the machine you've selected. The TransmitFile() API provides a very
efficient and scaleable way to send large files from disk on the server
to the client machine.
If you mark the "I don't see it here" button, the browser will send
Favorite=0
, and the server will respond with a redirection
to the Internet Pinball Database, a popular public Internet site for
pinball enthusiasts.
For this sample to properly work, you must have copied the *.GIF and
*.JPG files from the sample into the same directory as the PINBALL.DLL
file. See the sample abstract in online help for more details.
This sample was tested with Internet Explorer 4.01 and
Netscape Navigator 3.0.
What's your favorite pinball game?
All pinball artwork Copyright
WMS Industries.