home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_02_05
/
2n05014b
< prev
next >
Wrap
Text File
|
1991-04-02
|
619b
|
32 lines
/*
* LoadNonExistentResource()
* Loads a non-existent resource in, and attempts to delete it.
*
* Assumptions:
* hInst is the instance of our program
* The cursor 'BOGUS' does not exist.
*
*/
LoadNonExistentResource(HANDLE hInst)
{
HCURSOR hCurse;
/*----------------------*/
hCurse = LoadCursor(hInst,"BOGUS");
if (hCurse != NULL)
DeleteObject((HANDLE)hCurse);
else
{
MessageBox(MainhWnd,
"Attempting to delete an invalid cursor",
"Debug",
MB_ICONSTOP | MB_OK);
}
}