Re: How do MAKEINTRESOURCE in Euphoria?

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu