Adding a scripting engine to C++Builder / Delphi apps

This the the forum for potential authors to submit article ideas.

Moderator: 2ffat

Adding a scripting engine to C++Builder / Delphi apps

Postby S0mbre » Mon Jan 09, 2012 12:18 am

I've recently managed to implement custom scripting for a C++Builder project. Since writing a hand-made script parser/compiler is a nightmare, I was initially thinking of using a ready component, when I came across the Microsoft Scripting ActiveX Control (shipped with Windows via msscript.ocx). I used this one to create a C++Builder component which can then be added into any project to provide for VBScript or JScript scripting (in fact, the scripting control can be extended to other languages, but I haven't yet gone into that).

The most thrilling thing about the scripting engine is the fact that it can work with C++Builder classes / components as objects via the COM interface. The server application has to expose classes (methods, properties) via an automation (COM) object with a type library (it can be both an in-proc DLL and an out-proc EXE server). A reference to the registered object can then be added into the script control and used just like any object.

Please tell me if this sounds like an article. :)
Active Poster
Active Poster
Posts: 11
Joined: Wed Jun 08, 2011 9:36 pm

Re: Adding a scripting engine to C++Builder / Delphi apps

Postby Damon » Mon Jan 09, 2012 2:26 am

Absolutely! Sounds like a very interesting and useful topic. Please send me an e-mail so that I can provide you with our latest article template and further instructions. (editor AT bcbj DOT org).

Many thanks!

Damon Chandler
C++Builder Developer's Journal
User avatar
BCBJ Editor and Admin
BCBJ Editor and Admin
Posts: 285
Joined: Wed May 26, 2004 11:25 pm
Location: Stillwater, OK, USA

Return to Manuscript Proposals

Who is online

Users browsing this forum: No registered users and 2 guests