473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How do I edit an exe using vb .net 2005

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/ =-

Dec 8 '05 #1
2 1352
Hi,

I never did what you ask, however I assume that this is your start.

http://msdn2.microsoft.com/en-us/library/ms143302.aspx

I hope this helps,

Cor
Dec 8 '05 #2
"H-Des" <fa**@fake.fa> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 8 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Rena | last post by:
Hi all, I am now using VS Net 2003, but i found that i need to restart the web app. once i edit my code. correct me if i remembered wrongly, as I do not need to restart my web app b4 to make my...
12
by: dennist685 | last post by:
Can't edit, delete or add row in an Access database in a website 2003 When I implement a walkthrough using Northwind I have no trouble doing this. Also, in a windowsforms project I have no...
2
by: Learner | last post by:
Hello, I have a GridView control on my webform. I can see the data in my GridView control but I don't see any option to hide or delete the Edit column in the control. I don't have to have any...
1
by: Bharathi Kumar | last post by:
Hi, Iam working on a window application using vb.net 2005. There is a control "DataGridView" in vs 2005 instead of data grid control. After binding the datagridview, When we click on any...
5
by: Diane Yocom | last post by:
I'm using VS2005 and am trying to get Edit and Continue to work while debugging. I've gone to the Tools-Options-Debugging dialog box and made sure "Enable Edit and Continue" is checked, but when I...
0
by: den 2005 | last post by:
Hi everybody, I am not familiar using Gridview, I created a Gridview with Edit Command Button, but when I click the update Command button this error message below is displayed, what and where is...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
2
by: =?Utf-8?B?Z2FuZQ==?= | last post by:
Hi, In a gridview, How can i display different columns between item and edit modes. For eg. i have a sql that returns productname, categoryname, etc. In viewmode, i need to display only...
1
by: Oded Dror | last post by:
Hi there, I'm using VWD 2005 Express and SQL Server 2005 Express When I have a table with Primary key ASP.NET let you add INSERT EDIT and DELETE button to the GridView But when you don't have...
1
by: fishjelly | last post by:
How to edit and delete the data stored in xml file using C# and visual studio 2005 through user input? For example: for this xml document... <MenuRoot> <Books> <book> <title> ABC </title>...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.