Interfacing with a scripting language from cpp

Reply

Join Date: Jul 2009
Posts: 15
Reputation: telcontar is an unknown quantity at this point 
Solved Threads: 1
telcontar telcontar is offline Offline
Newbie Poster

Interfacing with a scripting language from cpp

 
0
  #1
Jul 20th, 2009
I'm planning to do a simple game engine (the core functionality in c++) from my own and I want to start with the scripting engine as I want this to be very 'modable', I did not coded anything yet, so suppose that exists a OOP scripting language in which I code the AI and things like that...which produces some kind of 'bytecode', so my question is : What part of this bytecode (variables, functions, or objects) should I retrieve from the VM and why?

Thanks
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 33
Reputation: AlbertPi is an unknown quantity at this point 
Solved Threads: 2
AlbertPi AlbertPi is offline Offline
Light Poster

Re: Interfacing with a scripting language from cpp

 
0
  #2
Jul 23rd, 2009
1. Needs a library file (*.h ro *.hpp)
#include "myscript.h"

myscript1(); // Call myScript 1
myscript2(); // Call myScript 2
myscript3(); // Call myScript 3
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 6
Reputation: Albert-Pi is an unknown quantity at this point 
Solved Threads: 0
Albert-Pi Albert-Pi is offline Offline
Newbie Poster

Re: Interfacing with a scripting language from cpp

 
0
  #3
Jul 23rd, 2009
Also this is a very good web site

SWIG makes integrating C++ with a wide range of scripting languages.

http://www.swig.org/
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 15
Reputation: telcontar is an unknown quantity at this point 
Solved Threads: 1
telcontar telcontar is offline Offline
Newbie Poster

Re: Interfacing with a scripting language from cpp

 
0
  #4
Jul 30th, 2009
Thanks, well found web page, i'll give it a shot.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Game Development Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC