Results 1 to 2 of 2

Thread: Executing code from a text file or database?

  1. #1

    Thread Starter
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668

    Executing code from a text file or database?

    I have a program that executes certain responses to a command sent in via a remote user. I want to be able to make this flexible and be able to add commands whenever. I was thinking of having a database of the commands and their proper responses... is it at all possible for my program to execute code via a stored database value?

    Basically I want to be able to add commands without a recompile of the program everytime.
    If wishes were fishes we'd all cast nets.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I think you'd need to make some kind of plugin based system to add new commends without a recompile. I guess it depends though and what the commands are suppose to be or do. Are they just raw code? If so then plugins. If they just determine what table to load data from or something like that then there is probably an easier way. With plugins you wouldn't have to recompile the app but you'd have to write the code for the command(s) dll(s) and compile them then add them to the app as a plugin.

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