Hi,
I have found this article about headers in windows:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/win
prog/using_the_windows_headers.asp?frame=true

Its saying you should keep header files upto date from the latest Platform
SDK on the Microsoft website, I guess.

The only thing they should be used for is checking version specific
information.
The example of the article is:

'For example, the GetDllDirectory function was introduced in Windows Server
2003 and is conditionally defined if _WIN32_WINNT is 0x0502 or greater. This
function was also added to Windows XP SP1. Therefore, if you were to define
_WIN32_WINNT 0x0501 to target Windows XP, you would miss features that are
defined in Windows XP SP1'

I am now expert though, maybe someone else should read through just to
confirm!!!

Regards

Martin.
 


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:osg-users-
> [EMAIL PROTECTED] On Behalf Of Robert Osfield
> Sent: 14 July 2006 17:52
> To: osg users
> Subject: Re: [osg-users] Threading Performance trouble...
> 
> Hi Adrian,
> 
> I would have thought _WIN32_WINNT should be something defined by
> windows headers not by OpenThreads code.  Perhaps other Win32 experts
> can fill us in on this.
> 
> Robert.
> 
> On 7/14/06, Adrian Egli <[EMAIL PROTECTED]> wrote:
> > Hi Robert, hi others,
> >
> > i feel much better, i got the performance issue located. There is
> something
> > odd in OpenThreads and i am not sure if this raise the trouble i am
> looking
> > for many hours.
> > on the dual cores the framerate is now pritty good, unfortunately i have
> no
> > access to the second computer. but at the moment it runs.
> >
> > i just changed few lines in the latest CVS version of OpenThreads:
> > win32mutexprivatedata.h
> >
> >
> > #ifndef _WINDOWS_
> > #define WIN32_LEAN_AND_MEAN
> > #define _WIN32_WINNT 0x0400  // was missing : adegli
> >  #include <windows.h>
> > #endif
> >
> > win32mutex.cpp
> >
> >
> > static void _S_nsec_sleep(int __log_nsec) {
> >
> >     if (__log_nsec <= 20) {
> >         SwitchToThread(); //Sleep(0); // adegli replaced it Sleep by
> > SwitchToThread
> >      } else {
> >         Sleep(1 << (__log_nsec - 20));
> >      }
> > }
> >
> >
> > i hope it will run now on all systems :-) but i will continue testing
> >
> > /adegli
> >
> >
> > 2006/7/13, Adrian Egli < [EMAIL PROTECTED]>:
> > >
> > > thanks for the nice inputs, i will try my best
> > >
> > >
> > > 2006/7/13, Martin Naylor <[EMAIL PROTECTED]>:
> > >
> > > >
> > > > I would also get a knife or sword ready, just in case sys admin
> catches
> > you
> > > > ;-).
> > > > Be careful about local polices in place about your PC's, in can get
> you
> > > > fired quickly, although I don't know your situation.
> > > > Ask an Admin?
> > > >
> > > > Martin.
> > > >
> > > > > screwdriver handy though!
> > > > >
> > > > > John Donovan
> > > > > Sony Computer Entertainment Europe
> > > > > http://www.scee.com
> > > > >
> > > > >
> > > > >
> > > > >
> > **********************************************************************
> > > > > This email and any files transmitted with it are confidential and
> > > > > intended solely for the use of the individual or entity to whom
> they
> > > > > are addressed. If you have received this email in error please
> notify
> > > > > [EMAIL PROTECTED]
> > > > >
> > > > > This footnote also confirms that this email message has been
> checked
> > > > > for all known viruses.
> > > > >
> > > > >
> > **********************************************************************
> > > > > Sony Computer Entertainment Europe
> > > > >
> > > > > _______________________________________________
> > > > > osg-users mailing list
> > > > > [email protected]
> > > > > http://openscenegraph.net/mailman/listinfo/osg-users
> > > > > http://www.openscenegraph.org/
> > > >
> > > > _______________________________________________
> > > > osg-users mailing list
> > > > [email protected]
> > > > http://openscenegraph.net/mailman/listinfo/osg-users
> > > > http://www.openscenegraph.org/
> > > >
> > >
> > >
> > >
> >
> >
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> > http://openscenegraph.net/mailman/listinfo/osg-users
> > http://www.openscenegraph.org/
> >
> >
> >
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/

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

Reply via email to