The MASM Forum

General => The Campus => Topic started by: Don57 on December 05, 2012, 06:27:49 AM

Title: DelGdiObj cannot find any references
Post by: Don57 on December 05, 2012, 06:27:49 AM
DelGdiObj Cannot find any call structure references
Title: Re: DelGdiObj cannot find any references
Post by: qWord on December 05, 2012, 06:36:31 AM
You may take a look at DeleteObject() (http://msdn.microsoft.com/en-us/library/windows/desktop/dd183539(v=vs.85).aspx)?
Title: Re: DelGdiObj cannot find any references
Post by: dedndave on December 05, 2012, 07:33:57 AM
that is the name of a routine that i wrote, Don

http://masm32.com/board/index.php?topic=1008.msg9228#msg9228

usage:

        INVOKE  DelGdiObj,offset hGdiObject

the PROTO goes near the beginning of the file
notice that you pass a pointer to a global - not the gdi handle