代码大全

(singke) #1

4-1
PDL PDL
PDL
PDL PDL
PDL
PDL :
Increment resource number by l
allocate a dlg struct using malloc
if malloc() returns NULL then return l
invoke OSrsrc _init to initialize a resource for the operation system



  • hRstcPtr resource number
    return 0
    PDL
    PDL *hRstcPtr c malloc( )
    PDL
    1 0 PDL
    PDL
    PDL
    Keep track of current number of resource in use
    If another resource is available
    Allocate a dialog box structure
    If a dialog box structure could be allocated
    Note that one more resource is in use
    Initialize the resource
    Store the resource number at the location provided by the caller
    Endif
    Endif

Free download pdf