topical media & game development
lib-ch-example-ref-wcgi-setBuffer.cgi / cgi
#!/bin/ch
/* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
include <wcgi.h>
int main() {
class CResponse Response;
bool buffer_def, buffer_cur;
//Get the default value
buffer_def = Response.getBuffer();
//Set to buffering
Response.setBuffer(true);
//Get the current value
buffer_cur = Response.getBuffer();
Response.begin();
Response.title(L"Test of Response.setBuffer and Response.getBuffer");
printf("<H1> Test of Response.setBuffer and Response.getBuffer </H1>
\n");
printf("Default Buffering is \%s <br>\n", buffer_def ? "True" : "False");
printf("Current Buffering is \%s <br>\n", buffer_cur ? "True" : "False");
Response.end();
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.