HWND
Posted: Thu May 10, 2012 10:16 am
I really have no idea what I am doing wrong, but I cannot seem to get Rev's windowID converted over to a HWND in an external.. I grabbed some really old code of mine that seems to have worked previously, but no longer works.. And using the same method I use writing Mac externals seems to fail as well..
my old way
from the mac
I include windows.h, stdlib.h and stdio.h ... Am I missing an include? Am I messing something up with one of the conversions? Do I need more sleep? Should I just forget about Windows?
my old way
Code: Select all
HWND tWindowRef = (HWND)atol(p_arguments[0]);
Code: Select all
HWND tWindowRef = (HWND)strol(p_arguments[0], NULL, 0);