How do I edit an exe using vb .net 2005

H

H-Des

Does anyone know how you can (resource) edit an exe in vb .net?
I've used this code in vb 6 but I'm not able to write it as vb .net code. I hope that someone can rewright it as vb .net

|Dim Offset As Long
|Dim DataString As String
|
|Offset = <the offset of what you want to replace>
|DataString = <a string containing the text (or any other bytes for that matter) you want to put>
|
|Open <File as String> For Binary As 1
|Put 1, Offset + 1, DataString
|Close 1

I tried System.IO.file.open but I don't know how to wright the Put command as vb .net.

Thanks in advance
H-Des


--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
 
H

Herfried K. Wagner [MVP]

H-Des said:
Does anyone know how you can (resource) edit an exe in vb .net?
I've used this code in vb 6 but I'm not able to write it as vb .net code.
I hope that someone can rewright it as vb .net

|Dim Offset As Long
|Dim DataString As String
|
|Offset = <the offset of what you want to replace>
|DataString = <a string containing the text (or any other bytes for that
matter) you want to put>
|
|Open <File as String> For Binary As 1
|Put 1, Offset + 1, DataString
|Close 1

I tried System.IO.file.open but I don't know how to wright the Put command
as vb .net.

Use 'FileOpen', 'FilePut', and 'FileClose' instead of 'Open', 'Put', and
'Close'. In addition to that, note that 'Long' is a 64-bit data type in
..NET.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top