470,821 Members | 2,060 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,821 developers. It's quick & easy.

Embedded Scripting

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
0 1135

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Chris | last post: by
12 posts views Thread by Brandon | last post: by
5 posts views Thread by John Benson | last post: by
2 posts views Thread by Markus Dehmann | last post: by
6 posts views Thread by Roger | last post: by
20 posts views Thread by Jack | last post: by
9 posts views Thread by cgrebeld | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.