[Overview][Constants][Procedures and functions] | Reference for unit 'pwumain' (#powtils_main) |
Source position: pwumain.pas line 142
function ResourceOut( |
const fname: String |
):errcode; |
An alternative to using this function is the WebBufferOut function. The WebBufferOut function requires that you set the mimetype using 'Content-Type' as a parameter with SetWebHeader. See the SetWebHeader and WebBufferOut functions. Setting the web header yourself allows you to control the mime type manually, while the webresourceout function tries to automatically detect the mime type.
In older versions of psp such as 1.5 and 1.6.0.0 this function did not return a value, it only threw errors to the screen (if warnings were on in your config file).