Sign in to follow this  
Followers 0
Uriziel01

how to read HIWORD from DWORD type

4 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites




[center]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.[/center]

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

#4 ·  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"

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0