🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7375

Re: Using VBScripting in application

#7375
From: Remy Lebeau (TeamB)
Date: Mon, 14 Feb 2005 01:15
34 lines
2278 bytes
"Jarkko Halme" <jjhalme@kotiposti.net> wrote in message
news:420f51af$1@newsgroups.borland.com...

> Does anyone know if it is possible to use for example
> VBScripting in application created with C++Builder 5.

Yes, it is.  Instantiate an instance of Microsoft's IActiveScript interface
via CoCreateInstance(), specifying the CLSID of the desired script language.
You can use the ICatInformation interface with the CATID_ActiveScriptParse
identifer to enumerate the installed scripting engines.  Then implement your
own object derived from IActiveScriptSite and assign it to the IActiveScript
interface via its SetScriptSite() method.  Then you can query the
IActiveScript interface for the IActiveScriptParse interface in order to
specify the actual script text to execute.

Refer to MSDN for more information.

> There are some ready made components, which refer to
> Microsoft's Scripting technolgies, but I could not find
> anything from Microsoft's page.

    Windows Script Interfaces

http://msdn.microsoft.com/library/en-us/script56/html/lrfWindowsScriptInterfaces.asp

> is it possible for example to put Memo component for example and
> fill it with VBScript and then use some Window's dll, which will
> encode it??

Yes.


Gambit
Technical Details
Message-ID: <420ffac1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <420f51af$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,429d92b384c7b2f8
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <420f51af$1@newsgroups.borland.com>
Subject: Re: Using VBScripting in application
Date: Sun, 13 Feb 2005 17:15:06 -0800
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <420ffac1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1108343489 68.69.17.41 (13 Feb 2005 17:11:29 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail