Re: Win32Lib: PlaySound/setVisible solution
- Posted by Brian Broker <bkb at CNW.COM> Nov 03, 1999
- 557 views
On Wed, 3 Nov 1999 20:36:06 -0500, Dan Moyer <DanMoyer at PRODIGY.NET> wrote: >I did change C_SHORT to C_LONG in the re- >definition of playSound when euphoria said C_SHORT wasn't defined, but I >really don't have any idea whether that is ok or not. (In other words, I >really don't know what I'm doing.) Well, a C_LONG is the same as a C_INT and that should work fine. Bernie mentioned that a boolean value is a C_SHORT. These constants essentially define how data is stored in a way that C understands. A Short integer is 16-bits while a Long integer is 32-bits. So defining the return value as a Long will work, it's just overkill. (Of course, only one bit is required to determine True or False so using a Short integer is also overkill.) These values should be defined in DLL.E in your INCLUDE directory (dll.e is included by win32lib.ew). What version of Euphoria are you using? Perhaps an older version of DLL.E did not define C_SHORT? Either way, as long as it works... I'm glad to hear that you might find my example useful after all! -- Brian