Loads an AppPage and returns a handle to that page.
returnCode = wcLoad(cntrlHandle, pageID, &pageHandle);
int wcLoad(void *controlHandle, char *MiVal, char **pageHandle)
controlHandle | The handle to the control structure. |
MiVal | The page ID. If this argument is null, wcLoad( ) uses the value of the MIval parameter from the configuration file. |
pageHandle | Out parameter used to return a handle to an AppPage. |
0 | Success. |
Error code | Failure or exception. For a list of possible error codes, see Error Messages. |
The following code shows how wcLoad( ) is used in an application.
int handleRequest(wcp) void *wcp; { char *pagePtr; char *pageId; int ret; wcGetVariable(wcp, "MIval", &pageId); if((ret = wcLoad(wcp, pageId, &pagePtr)) < 0) return wcTraceErr(wcp, ret); ret = WebExplode(wcp, pagePtr, NULL); if (pagePtr!=NULL) free(pagePtr); return (ret); }
wcAppPageConnName( )
wcLoadLO( )
WebExplode( )