Uriziel01 Posted June 18, 2008 Share Posted June 18, 2008 (edited) Hi! Im trying to make audio player using bass.dll but I have big problem on start. How can I obtaing a HIWORD value from a DWORD type. I have readed in documentation that function BASS_GetVersion uses HIWORD if (HIWORD(BASS_GetVersion())!=BASSVERSION) { // incorrect version loaded! } And when im using str or dword type the function is returning me nothing. $bass=DllOpen("Bass.dll") $wersja=DllCall($bass,"dword","BASS_GetVersion") MsgBox(0,"",$wersja ) I have no idea how to do this :\ Can enybody help me ? Edited June 18, 2008 by Uriziel01 Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 18, 2008 Moderators Share Posted June 18, 2008 AutoIt Search Feature Results Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Uriziel01 Posted June 18, 2008 Author Share Posted June 18, 2008 (edited) Ok but I need to use it in place of dword as return type because when im getting dword and next converting to HiWord im getting 0. My question is, how to make something like that: $wersja=DllCall($bass,"HiWord","BASS_GetVersion") EDIT: When I try to use something like THIS, im getting 0 $bass=DllOpen("Bass.dll") $wersja=DllCall($bass,"dword","BASS_GetVersion") MsgBox(4096, "High", _HiWord($wersja)) Edited June 18, 2008 by Uriziel01 Link to comment Share on other sites More sharing options...
Siao Posted June 18, 2008 Share Posted June 18, 2008 (edited) If only you bother to do a search for "hiword" in AutoIt helpfile, you'd even find functions _WinAPI_HiWord/_WinAPI_LoWord among the search results. Not that such simple bit manipulation requires any user defined functions... Edited June 18, 2008 by Siao "be smart, drink your wine" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now