Re: How do MAKEINTRESOURCE in Euphoria?
- Posted by ArthurCrump May 16, 2013
- 2053 views
mattlewis said...
ArthurCrump said...
#define MAKEINTRESOURCEW (x) ((LPWSTR) (U_LONG_PTR) (WORD) (x))
This appears to be casting to a WORD (16-bit unsigned) and then up into a pointer, so you should be able to do:
function MAKEINTRESOURCE( atom x ) return and_bits( 0xffff, x ) end function
Matt
Thank you. That gives the results I was hoping for, although I don't understand how it can deduce the original atom.
Arthur