Ironworks Gaming Forum

Ironworks Gaming Forum (http://www.ironworksforum.com/forum/index.php)
-   General Conversation Archives (11/2000 - 01/2005) (http://www.ironworksforum.com/forum/forumdisplay.php?f=28)
-   -   (Yet Another) Visual BASIC Question (http://www.ironworksforum.com/forum/showthread.php?t=85809)

LennonCook 05-07-2003 05:42 AM

<span style="color: lightblue">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 ??

andrewas 05-07-2003 07:59 AM

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.


All times are GMT -4. The time now is 09:40 AM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved