DeleteCtResource Delete Resource from file. Short Name DELRES() Type Low-level file function Declaration COUNT DeleteCtResource(COUNT filno, pVOID resptr) Description DeleteCtResource() is used to delete a Resource from data file filno. If there is a record lock on this Resource, the lock is automatically freed. Obtain a lock with GetCtResource() using RES_LOCK mode. resptr points to a Resource Data Block as shown below. This is the same structure as used in the other Resource functions.
Return
See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values. Example structure { /* Resource Data Block */
ULONG resource_type; ULONG resource_number; TEXT resource_name[80]; } my_resource;
my_resource.resource_number = 100;
printf("\nThe resource has been deleted");
else printf("\nCould not delete resource. Error #%d", uerr_cod);
Limitations The resource_name field of the Resource Data Block is ignored. See also AddCtResource(), UpdateCtResource(), GetCtResource() |
||||||||||||||||||||||||||||||