Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. In Program Editor

In Program Editor

Scheduled Pinned Locked Moved C#
question
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xandafergus
    wrote on last edited by
    #1

    I'm relatively new to programming and this site so excuse me if this is not in the right place. I'm making a program where I think it would be particularly handy to be able to edit the source code files or create new ones. What would be the best approach to doing this? I thought about just making a base program that then runs a .dll that contains all the members etc., but thinking about it today I think that would create a lot of issues. Is there a way to build the .exe and have it contain all the source files, and then be able to extract them, edit them, or insert new ones and dynamically add them into the current running program?

    N M 2 Replies Last reply
    0
    • X Xandafergus

      I'm relatively new to programming and this site so excuse me if this is not in the right place. I'm making a program where I think it would be particularly handy to be able to edit the source code files or create new ones. What would be the best approach to doing this? I thought about just making a base program that then runs a .dll that contains all the members etc., but thinking about it today I think that would create a lot of issues. Is there a way to build the .exe and have it contain all the source files, and then be able to extract them, edit them, or insert new ones and dynamically add them into the current running program?

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      You can use CodeDOM [^]to dynamically create the code, but the real question is why you need to do this?

      Xandafergus wrote:

      handy to be able to edit the source code files or create new ones

      Isn't that VS is for?


      only two letters away from being an asset

      X 1 Reply Last reply
      0
      • N Not Active

        You can use CodeDOM [^]to dynamically create the code, but the real question is why you need to do this?

        Xandafergus wrote:

        handy to be able to edit the source code files or create new ones

        Isn't that VS is for?


        only two letters away from being an asset

        X Offline
        X Offline
        Xandafergus
        wrote on last edited by
        #3

        I don't necessarily need to be able to do this, it's just that my computer is not exactly fast. It takes me longer than I would like to stop the debug process, enter my code, and then restart it. Also, I'm going to put this on other computers that do not have VS installed unfortunately...and I would like if I could edit this code from there without having to go through VS's long install process.

        N 1 Reply Last reply
        0
        • X Xandafergus

          I don't necessarily need to be able to do this, it's just that my computer is not exactly fast. It takes me longer than I would like to stop the debug process, enter my code, and then restart it. Also, I'm going to put this on other computers that do not have VS installed unfortunately...and I would like if I could edit this code from there without having to go through VS's long install process.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          You need to address the issues you are facing in a different way. CodeDOM presents security risks and is very complicated, it's not designed as work around solution.


          only two letters away from being an asset

          1 Reply Last reply
          0
          • X Xandafergus

            I'm relatively new to programming and this site so excuse me if this is not in the right place. I'm making a program where I think it would be particularly handy to be able to edit the source code files or create new ones. What would be the best approach to doing this? I thought about just making a base program that then runs a .dll that contains all the members etc., but thinking about it today I think that would create a lot of issues. Is there a way to build the .exe and have it contain all the source files, and then be able to extract them, edit them, or insert new ones and dynamically add them into the current running program?

            M Offline
            M Offline
            malk0lm
            wrote on last edited by
            #5

            That doesn't make any sense because if any of the source code for your program changed you would need to rebuild it and redeploy it and it wouldn't be feasible to do that on the fly. Maybe you want to create a scripting style language to allow your users the ability to program some functionality in that way. Alternatively you could consider supporting some plug-in facilities.

            ɹǝʌo ɹoʇıuoɯ ɹnoʎ dılɟ sıɥʇ pɐǝɹ ʇ,uɐɔ noʎ ɟı

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups