Changing Strings With a Button?

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
getlowdogg





Posts: 59
Joined: Sat Feb 04, 2006 9:27 pm
Location: White Oak, PA

Changing Strings With a Button?

Post by getlowdogg »

Hello everyone. I do not know how to say this, but some how I want to know how to make it so when you click a button, it changes strings in the file. Like the strings is HEX, if there is any difference. I am using the language BASIC. Someone please help me! Thanks!

~ Jason
ugly-nerd





Posts: 23
Joined: Sat May 21, 2005 6:51 am

Post by ugly-nerd »

Im assuming this is in visual basic.

Code: Select all

Dim BR As New BinaryReader(New FileStream(FILEPATH, FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite))
BR.BaseStream.Position = (DECIMAL OFFSET HERE)
BR.Write(Value you want)
Use a DECIMAL to HEXADECIMAL converter.
User avatar
VoiDeD
Readers Club




Socialist

Posts: 1866
Joined: Thu Jan 15, 2004 4:46 pm
Location: Gurnee, IL
Contact:

Post by VoiDeD »

2 month bump? Ah well.


BASIC, not VB.NET..

getlowdogg, I'd suggest you drop BASIC and learn C/C++, but if thats a bit too hard for you, then C#. And I'd say as a last resort learn VB.NET.
Last edited by VoiDeD on Tue Jun 06, 2006 5:32 pm, edited 1 time in total.
Image
Zenaku213





Posts: 185
Joined: Thu Jun 02, 2005 12:09 pm
Location: In your walls.

Post by Zenaku213 »

Yea VoiDeD is absolutley write. C or C++ is the best to start out with, VB is way to hard to begin with.
CLuis wrote:Being goth is a disease.
All those losers in gym must have it then.
User avatar
0mfc0





Posts: 218
Joined: Sun May 07, 2006 11:10 am
Location: Indiana

Post by 0mfc0 »

Zenaku213 wrote:VB is way to hard to begin with.
I seriously hope you were being sarcastic :P
Image
ugly-nerd





Posts: 23
Joined: Sat May 21, 2005 6:51 am

Post by ugly-nerd »

Are you stupid? Visual basic and .net are the same thing for binary reading, that works in vb 2005 and vb 2003 .net... and C# is pretty much the same thing as VB, just a bit faster. C++ isnt much harder either. VB IS the way to start out, for a little bit.
User avatar
VoiDeD
Readers Club




Socialist

Posts: 1866
Joined: Thu Jan 15, 2004 4:46 pm
Location: Gurnee, IL
Contact:

Post by VoiDeD »

ugly-nerd wrote:Are you stupid? Visual basic and .net are the same thing for binary reading, that works in vb 2005 and vb 2003 .net... and C# is pretty much the same thing as VB, just a bit faster. C++ isnt much harder either. VB IS the way to start out, for a little bit.
Sigh.. He said he wanted it in BASIC..
getlowdogg wrote:I am using the language BASIC.
Zenaku213 wrote:Yea VoiDeD is absolutley write. C or C++ is the best to start out with, VB is way to hard to begin with.
It is actually.. If you want to learn a real language.
Image
User avatar
JK-47




Bloodhound Pyre Socialist Grunge

Posts: 10883
Joined: Wed Dec 01, 2004 2:54 pm
Location: Utah

Post by JK-47 »

I highly doubt this user is even active yet....

I think we should just stop contributing to the bump..
Image
Post Reply