Jump to content

Recommended Posts

Posted (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 by Uriziel01
Posted (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 by Uriziel01
Posted (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 by Siao

"be smart, drink your wine"

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...