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 / C++ / MFC
  4. External C++ Scripts

External C++ Scripts

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminquestionworkspace
3 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.
  • N Offline
    N Offline
    NewbieStats
    wrote on last edited by
    #1

    I know its possible with VB but is it possible with C++? Have a part in the program where it allows the user to write what he wants in a text and itll implement it into the program? Not like a configuration where you allow the user to write name/password so forth... But a full blown C++ code written in a text file that the program reads and uses it at the certain point of the program... Say; Having a Client/Server program (a bot), and having the user write all the commands in C++ he wants in a text, allowing him to delete some, and add some commands... How would this be allowed? /* Just a Human Trying to Live in a Computers World. */

    C T 2 Replies Last reply
    0
    • N NewbieStats

      I know its possible with VB but is it possible with C++? Have a part in the program where it allows the user to write what he wants in a text and itll implement it into the program? Not like a configuration where you allow the user to write name/password so forth... But a full blown C++ code written in a text file that the program reads and uses it at the certain point of the program... Say; Having a Client/Server program (a bot), and having the user write all the commands in C++ he wants in a text, allowing him to delete some, and add some commands... How would this be allowed? /* Just a Human Trying to Live in a Computers World. */

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      NewbieStats wrote: Have a part in the program where it allows the user to write what he wants in a text and itll implement it into the program? you'd either have to include a C++ compiler and linker or use a C++ interpreter like CINT[^]. then you'll have to set up an interface so that your program and the external code can communicate. that could be difficult (or easy), depending on what you want these external code chunks to do. if it's compiled code, you're probably looking at a very tough bit of work. interpreted code is probably easier, since it'll be 'running' inside your EXE. but, if you're asking your users to write C++ in order to use your program, you might as well ask them to go all the way and simply build DLLs which implement certain interfaces that your program can use via LoadLibrary - plugins, in other words. Image Toolkits | Image Processing | Cleek

      1 Reply Last reply
      0
      • N NewbieStats

        I know its possible with VB but is it possible with C++? Have a part in the program where it allows the user to write what he wants in a text and itll implement it into the program? Not like a configuration where you allow the user to write name/password so forth... But a full blown C++ code written in a text file that the program reads and uses it at the certain point of the program... Say; Having a Client/Server program (a bot), and having the user write all the commands in C++ he wants in a text, allowing him to delete some, and add some commands... How would this be allowed? /* Just a Human Trying to Live in a Computers World. */

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        C++ is compiled, not interpreted... I don't think this is possible to do, unless (as it has been said) you add a compiler


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        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