monitorlg Posted February 16, 2009 Posted February 16, 2009 Hi All, I am writing a script where i have to form a packet, such that when i frame the decimal value it should convert it into byte value. Can any body suggest me which all function to use in this conversion. I have formed the packet using Binary function, but still i am reaching the desired result. here is the sample code: Dim $WBuffer[128] $WBuffer = Binary(81) & Binary(132) & Binary(3) & Binary(4) & Binary(0) & Binary(1) & Binary(189) WritetoDriver($WBuffer,7) Func WritetoDriver($Buffer,$length) $Result = DllCall($DR_Plugin, "long", "Driver_Write", "Str", $Buffer, "long", $length) MsgBox(0, "", $Result[0]) EndFunc Please Reply Thank you.
trancexx Posted February 16, 2009 Posted February 16, 2009 That makes no sense. Just post description of required parameters for Driver_Write function. ♡♡♡ . eMyvnE
monitorlg Posted February 16, 2009 Author Posted February 16, 2009 That makes no sense. Just post description of required parameters for Driver_Write function.The Driver_Write function takes String and long as their parameters.
trancexx Posted February 16, 2009 Posted February 16, 2009 And that long value, what is the meaning of that parameter? Is that the size of $Buffer value or what?What's with $WBuffer[128]?If I say that decimal value is 12345. What would be its byte value? What value are you expecting? ♡♡♡ . eMyvnE
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