05-07-2003, 05:42 AM | #1 |
Jack Burton
Join Date: November 10, 2001
Location: Bathurst & Orange, in constant flux
Age: 37
Posts: 5,452
|
Can I edit an existing file using VB ?? If so, what is the syntax ??
And can this be used to add code to an existing form ?? How would I specify what sub/function it goes in ?? |
05-07-2003, 07:59 AM | #2 |
Harper
Join Date: October 2, 2001
Location: Aberdeen, Scotland
Age: 42
Posts: 4,774
|
You can open a file for reading or writing. To edit it, you would have to read it in, edit, then write it out again.
But if you want to write self-modifying code VB is a very bad choice. Any compiled language is a bad choice of course. You would need to open the file in binary mode and edit the actual op-codes. And those op-codes arent intel-standard like you can look up on the net, there M$ pseudo-code that runs through a virtual machine. And no-one has the complete list of op-codes. Plus compliers do funny things to functions - the code wouldnt be organised anything like what you originaly entered. Add to that the fact that you wouldnt be able to open the file while windows has it open for execution. So no, you cant write a program to add code to a form.
__________________
[img]\"http://www.sighost.us/members/Zvijer/andrewas.gif\" alt=\" - \" /> |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Visual BASIC Questions | LennonCook | General Conversation Archives (11/2000 - 01/2005) | 7 | 10-21-2003 10:31 AM |
Visual Basic Decompiter | Intrepid | General Conversation Archives (11/2000 - 01/2005) | 6 | 09-04-2003 03:02 AM |
Visual Basic Question | LennonCook | General Conversation Archives (11/2000 - 01/2005) | 5 | 02-23-2003 01:58 PM |
Anyone know Visual Basic 6 here? | Jorath Calar | General Conversation Archives (11/2000 - 01/2005) | 1 | 11-24-2001 12:57 PM |
Basic D & D question | Mels | Baldurs Gate II Archives | 2 | 12-25-2000 10:56 AM |