By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,778 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,778 IT Pros & Developers. It's quick & easy.

Embedded Scripting

P: 1
I have made a embedded scripting language for C++ based on XML. But the most important part is missing, calling C++ functions from within the script.

I have a struct which stores all c++ commands.
Expand|Select|Wrap|Line Numbers
  1. struct _Commands
  2. {
  3.     const xmlChar* Name;
  4.     const xmlChar* Args;
  5.     void *Command;
  6. } Commands[1024];
But when i wan't to execute Command it says i can't use it as a function. I'm trying to execute it this way
Expand|Select|Wrap|Line Numbers
  1. (void*)Commands[i].Command();
What did i do wrong ?!
Jun 29 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.