We are trying to get an HWND for a t_wind as part of the OpenGL windowing technique at http://www.cycling74.com/forums/index.php?t=msg&goto=38969
presented in the archives. When we run the following code, Max posts a correct value of 60 for the right edge, suggesting that we are successfully creating a t_wind. Nonetheless, our call to wind_gethwnd returns null. Does anyone have any advice on resolving this problem?
t_wind *w = NULL;
w = wind_new (x, 10, 10, 60, 60, 0);
post ("w is still null");
post ("right is %ld", (long)w->w_x2);
x->iWindowRef = wind_gethwnd(w);
post ("Can't gethwnd.");