This routine can be called with a URL like this:
where .wwd is the extension of your scriptmap. You can also access the resource like this:
Resources can be of any type and can be added to the server at any time via the wwServer::AddResource(). This functionality is very useful for including related files of your application as part of the EXE rather than including the files externally in the Web directory. To use:
- You add Resources typically in Server::OnLoad()
- When you need a resource you link to the WebResource.wc url to retrieve it with the Resource= key to identify the resource
Note that you can use wwProcess::GetWebResourceUrl to get a URL returned in the current application that can be used to retrieve a resource.
See also:Class wwProcess | wwServer::AddResource
Comment or report problem with topic