Page 1 of 1

reciving a handle as an argument.

Posted: Sun May 30, 2004 5:55 am
by okman
i am making a dll to close the window calling it. i want to include an argument of HWND type. how do i do it. i tried this

proceduredll clswin(HWND hand)

but pb gives me error. so is there ne other way. see the program using the dll can return its handle to the hand argument.

Posted: Sun May 30, 2004 9:41 am
by blueznl
hwnd is a long, that should put you in the right direction

Posted: Mon May 31, 2004 7:04 am
by carolight
In PureBasic

Code: Select all

WindowID(#windownum) 
returns a HWND handle for the window. You need to specify the Window number eg WindowID(0)

Posted: Mon May 31, 2004 1:23 pm
by Soulfire

Code: Select all

ProcedureDLL clswin(hand.l)