Hi Bill. Just something Regan and I allready have discussed ... but we are not sure about . C++ CWin* pActive= reinterpret_cast<CWin*>((HWND)::GetWindowLong(msg.hwnd,GWL_USERDATA)); D CWin pActive = cast(CWin) cast(HWND)GetWindowLong(msg.hwnd,GWL_USERDATA); where CWin is a class. The problem here is that pActive in D is a reference. Bjoern