Results 1 to 3 of 3

Thread: [2005] Modify Code

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    [2005] Modify Code

    Is it possible to modify hardcode from my program?

    Like make a textbox called Code and if you write:

    if txtbox.text = "hello" then
    msgbox("hi")
    end if

    it will run that code or delete another section like delete this:

    if txtbox.text = "hello" then
    end
    end if

    And replace it.

    I want to make a program where u can modify the code i write.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [2005] Modify Code

    Yes..... and no..... Yes it's possible, but no, it's not that simple.
    It involves building the code for an assembly in memory, passing it to the CodeDom and compiling it to either disk or in memory, then invoking the methods in the new assembly.

    here's some resources I found using "executing dynamic code in .NET" in a search engine
    http://www.west-wind.com/presentatio...ynamicCode.htm

    http://www.codeproject.com/KB/dotnet...rget=scripting

    http://support.xocomp.net/Protocol/d...uting_code.htm

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: [2005] Modify Code

    I dont think this is exactly what i was itending for those sites show how to run certain commands and code by a window which i forget the name..lol but anyway thats the window that displays the ????.writeline etc.. I wanted a user to be able to change the code by a program i make.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width