Visit the Ironworks Gaming Website Email the Webmaster Graphics Library Rules and Regulations Help Support Ironworks Forum with a Donation to Keep us Online - We rely totally on Donations from members Donation goal Meter

Ironworks Gaming Radio

Ironworks Gaming Forum

Go Back   Ironworks Gaming Forum > Ironworks Gaming Forums > General Discussion > General Conversation Archives (11/2000 - 01/2005)

 
 
Thread Tools Search this Thread
Old 05-07-2003, 05:42 AM   #1
LennonCook
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 ??
LennonCook is offline  
Old 05-07-2003, 07:59 AM   #2
andrewas
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=\" - \" />
andrewas is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

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


All times are GMT -4. The time now is 06:15 PM.


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