I am currently passing a handle to a device context through an interface as a LONG type. I am sure this is not the correct way to do this, but it does work.
The components are simple ATL objects that are windowless controls which can draw on any device context.
In 64 bit windows, pointers are 64 bits long and a LONG is 32 bits, so when I port this code to x64, the handle to a device context will not work since a handle is a pointer.
Is there a platform independent way to do this so that the same IDL will work for both 32 and 64 bit builds?