Jim Gadrow wrote: > Ok, I'm trying to create a windows application and I am experiencing an error when storing and retrieving a pointer from a window long. > > I receive the 'Error: undefined identifier GWL_USERDATA' message when compiling unless I add: > > extern (Windows) int GWL_USERDATA; > Try adding this instead of that: const GWL_USERDATA = -21;