[Qt-interest] Win64 declaration of Sleep()?

Scott Aron Bloom Scott.Bloom at sabgroup.com
Fri Jan 2 19:47:46 CET 2009


But your question would be better answered by a win32 list.. 

Your clearly working on a win32 area of your code... Now I don't
understand what Sleep call you would ever need for file IO under
windows, I do a ton of it, and have never had any issues... but that's
your call...

My point is this, your asking a VERY windows specific call to a QT list.
Your not asking a QT on Windows call which would have been very
different...

As in, I am using QFile on windows, and the functionalty XXX is now
working, but it works on OSX and Linux...

AS to your point #4, you certainly can include windows headers, but yes,
you would have to guard the includes as well as the win32 specific
calls...

Scott

> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Robert Hairgrove
> Sent: Friday, January 02, 2009 10:32 AM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] Win64 declaration of Sleep()?
> 
> Scott Aron Bloom wrote:
> > amd this has what todo with QT?
> > -Scott
> > --Sent from my mobile device--
> 
> It has to do with Qt because:
> 
> (1) I am interested in writing software which runs on all platforms
> supported by Qt, and WIN32 just happens to be one of them;
> 
> (2) This issue doesn't present itself under other OS than Windows;
> 
> (3) There is no system-wide "sleep" function defined in the Qt
> libraries, and the one(s) that is/are are protected member functions
of
> QThread, therefore not readily accessible from outside the framework.
> 
> (4) Since I cannot (and don't want to) include any Windows header
files
> in my projects, I need to declare such functions as necessary (within
> #ifdef ... #endif guards) such as I have done.
> 
> OK??
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list