[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: simple Lua alien question
- From: Thomas Buergel <Thomas.Buergel@...>
- Date: Mon, 28 Feb 2011 10:38:16 -0800
> Likely because you declare 'Sleep' as 'void(*)(int)', but Sleep
> actually takes a DWORD, which is usually typedef'd to 'double'.
On Windows, DWORD is not a double, but an unsigned long (32-bit wide in both 32- and 64-bit ABIs):
typedef unsigned long DWORD;
Apologies for the off-topic post, just wanted to clarify.