monitorlg Posted February 16, 2009 Share 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. Link to comment Share on other sites More sharing options...
trancexx Posted February 16, 2009 Share Posted February 16, 2009 That makes no sense. Just post description of required parameters for Driver_Write function. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
monitorlg Posted February 16, 2009 Author Share 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. Link to comment Share on other sites More sharing options...
trancexx Posted February 16, 2009 Share 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 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