473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Extension to ScriptControl-OCX ?

Hi,

I am a C++ beginner and therefore I can solve the following problem
unfortunately not without your assistance. For a C++ professional it
is probably a minute to think about...

The ScriptControl OCX of Microsoft makes it possible to build your own
programs with VBS/JS scripting. That is simply to integrate and
documented. Only an important feature is missing: you cannot
terminate/abort a Script if you use the OCX control as VisualBasic
programmer.

In the "Microsoft Windows Script interface", there is an interesting
routine:

IActiveScript::InterruptScriptThread
http://msdn.microsoft.com/library/de...riptThread.asp

The documentation: "Interrupts the execution of a running script
thread [...]. This method can be used to terminate a script that is
stuck (in an infinite loop, for example). [...]"

That sounds exactly as a solution to my Problem! A function to abort
the execution of a "ScriptControl.Run" call. But: the interface
"IActiveScript" is not available in the VisualBasic world. It should
be possible to encapsulate the ScriptControl again by a new OCX
(written in C++) and to pass-through all existing VisualBasic routines
(e.g. "run") and add the routines of the interface "IActiveScript".
Unfortunately I have no idea of OCX programming in C++... Can someone
help there?

http://www.codeguru.com/activex/Scri...]ScriptControl

This Link is a "tutorial" for ScriptControl programming. Therein I
already fail at the first sentence: "Create A dispatch classes from
the Script control type LIBRARY using ClassWizard." Where do I find
the type LIBRARY for the ScriptControl. I have only the OCX file, but
no TLB...

For assistance and/or tip I would be very thankful!

Regards,
Oliver
Jul 22 '05 #1
1 2850
On 24 Nov 2003 03:59:07 -0800, sc******@gmx.de (Oliver Schuetze) wrote
in comp.lang.c++:
Hi,

I am a C++ beginner and therefore I can solve the following problem
unfortunately not without your assistance. For a C++ professional it
is probably a minute to think about...

The ScriptControl OCX of Microsoft makes it possible to build your own
programs with VBS/JS scripting. That is simply to integrate and
documented. Only an important feature is missing: you cannot
terminate/abort a Script if you use the OCX control as VisualBasic
programmer.


Ask in a Windows programming group like
news:comp.os.ms-windows.win32.programmer, or one of Microsoft's
support groups in the news:microsoft.public.* family. None of this is
defined by the C++ language, it is all Windows specific extensions.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Gyger | last post by:
Hello, Three weeks ago, I have started to develop a binding extension for Qt and PHP 5. Now, I can display a dialog box containing some widgets like label, buttons and edit line. I have just...
0
by: Sebastien de Menten | last post by:
I am trying to use ScriptControl under Excel (Windows XP) with the code: Global sc As New MSScriptControl.ScriptControl Public Function os_getcwd() sc.Language = "python" sc.ExecuteStatement...
0
by: Alejandra Parra | last post by:
I have the next code: Dim Script As Object = CreateObject("MSScriptControl.ScriptControl") I've run this application in WinXP and it works normally, but if I run the application in Win98, the...
5
by: Jeffry van de Vuurst | last post by:
Hi, I'm working on an xml schema and I'm running into some problems relating substitutionGroups and extensions. This xsd validates fine: There are three elements and three complex types and...
0
by: Cunac | last post by:
Does anybody know how to reset variable context in one module without deleting global module context (global reset() func.), and how to remove module from ScriptControl->Modules list.
1
by: Brian Henry | last post by:
Just thought maybe someone here would like to know this. It's an example code I just created quickly on how to figure out the name of a type of file based on its extension (say for example .DOC)...
1
by: sjallard | last post by:
Hi, I'd like to do something like that (see explanations after the code snippet) : Sub mainSub (foo as String) Dim msScript As New ScriptControl msScript.Language = "VBScript" Dim someVar...
0
by: robert | last post by:
Hi all, I'm having a hard time resolving a namespace issue in my wsdl. Here's an element that explains my question, with the full wsdl below: <definitions name="MaragatoService"...
6
by: tommybiegs | last post by:
I'm having a weird problem. I can't seem to force php to load an extension using php.ini, but it loads perfectly if I use dl() at the beginning of a test script. In php.ini I've got: ...
4
by: Alfredo73 | last post by:
Hi, In the user input of a textbox I would like that the user can input a formula to make it easier for him. So instead of inputing 400 I would like the user to have the possibility to input as...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.