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