Hi all,

 

When compiling Producer (release 1.1) as a 64 bit library using Visual Studio 8, I get the following error:

 

RenderSurface_Win32.cpp

..\..\src\RenderSurface_Win32.cpp(261) : error C2065: 'GWL_WNDPROC' : undeclared identifier

 

Looking into this a bit, I found that Producer's Win32 render surface implementation is using the call SetWindowLong and the associated define GWL_WNDPROC, which are not 64 bit compatible according to Microsoft.  The recommended function to use is SetWindowLongPtr.  (See http://msdn.microsoft.com/library/default.asp?url="">

 

Anyone seen this before?  It's hard to believe no one else has built Producer for 64 bit Windows.

 

In any case, I was able to get Producer building and running by changing to SetWindowLongPtr function calls appropriately.  I can submit the changes unless there's a valid reason for using SetWindowLong that I'm just missing.

 

-Mike Wittman

 

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to