What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Convert to Byte... Then Read Stuff

[?] Convert to Byte... Then Read Stuff
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
O.P. [?] Convert to Byte... Then Read Stuff
I'm gonna be lazy for once (nah, I have actually tried hard for this :p)... I'm getting header information posted to me from a server and I need to take the first 48 characters, send them to a datablock object and then be able to read information from them.

I still can't quite get the hang of this datablock business so I've attached a file with a few examples of what I want (All whitespace on a line needs to be included)... If somebody could write me a nice function it'd be awesome.

(Y) :p

.txt File Attachment: convert.txt (202 bytes)
This file has been downloaded 104 time(s).

This post was edited on 09-30-2008 at 11:58 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
09-30-2008 11:57 PM
Profile PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: [?] Convert to Byte... Then Read Stuff
What exactly do you have in mind?

code:
var MyDataBlock = Interop.Allocate(98); // String size is 48. Add NULL character: 1, makes 49. Unicode, so multiply by 2, makes 98.
MyDataBlock.writeSTRING(0 /* offset */,myString.substr(0,48) /* header */ );


This post was edited on 10-12-2008 at 10:59 AM by SmokingCookie.
10-12-2008 10:51 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On