All Questions
14
questions
0
votes
1
answer
96
views
Windows Script Host terminates when closing the created window
I created a wrapper function for CreateWindowEx API function and used it from a VBScript. This is the VBScript:
Dim Result, wcx(10) 'VARIANT ARRAY(10) - WNDCLASSEX
wcx(5) = WINAPI.WinAPI_LoadIcon(...
0
votes
1
answer
158
views
C++ COM ATL VariantChangeType causes WSH to crash
I have following line of code in my COM ATL project which causes WSH to crash:
Result = VariantChangeType(&Variant, &Variant, VARIANT_NOUSEROVERRIDE, VT_UINT);
When above function gets ...
0
votes
1
answer
770
views
Windows Script Host - Error '800A01B6' Object doesn't support this property or method
I am having an strange error with my C++ Windows API wrapper dll. I have already exposed six methods to COM with this dll. Every function works when I use them individually, but when I use COM exposed ...
4
votes
2
answers
3k
views
How to link a static library using WAF?
I'm using OpenSSL in my C++ program, and I need to link crypto and ssl with it. If it were for example gcc, I would just pass:
-lcrypto -lssl
I am adding this dependency in Network-Simulator 3.
But ...
0
votes
1
answer
2k
views
Waf - How to add a library to a wscript file?
I would like to add the c++ library cpp-netlib to a wscript.
Then if I run dpkg -l libcppnetlib0 I obtain:
libcppnetlib0: 0.11.0-1 amd64 C++ Network Library
Running: dpkg -L ...
-3
votes
1
answer
62
views
Can I have a COM interface in a service to be called from Windows Script Host?
My goal is to create a COM interface in my Windows local service, written with C++/MFC, whose methods could be called from a Windows Script Host JScript code running under a logged in interactive user ...
2
votes
1
answer
2k
views
Executing cscript using IActiveScript with C++
I'm trying to execute a script using cscript with IActiveScriptParse and ParseScriptText but for some reason I get an error: E_UNEXPECTED.
This article has helped me a lot. I'm using its ...
0
votes
1
answer
3k
views
Windows Script Host Error 0x800700C1 Code 800700C1
I was reading chapter 20 "Automation" of the book by Jeff Prosise "Programming Windows with MFC", 2nd ed. There are instructions on how to create a small automation server with methods long Add(long, ...
0
votes
1
answer
566
views
Configuring Qt .pro file to use cl.exe and link.exe to fix linking errors
As part of my Qt project, I have a WSO2 WSF/C++ module as a webservice.
Now the instructions to build this module are pretty straight-forward in CLI (Windows environment):
To compile:
cl.exe /D "...
0
votes
0
answers
1k
views
symbol lookup error undefined symbol using WSF
I am getting this at runtime:
./LibTestApp: symbol lookup error: libaxis2_mod_addr.so: undefined symbol: axis2_handler_create
on command user1@ubuntu:nm path/libaxis2_mod_addr.so | grep ...
1
vote
4
answers
531
views
Ways to communicate between JScript and Windows service
I have a Windows local service that may spawn off a process to execute a JScript script (in a .js file) via the Windows Script Host. The issue is that I need to notify my service of the results ...
2
votes
3
answers
7k
views
How to create an ActiveX that can be used in a Javascript engine
Do you know any tutorial for creating MFC ActiveX objects that can be used in JScript or VBScript (Windows Script Based Host)?
I mean an OCX that can be used as:
var x= new ActiveXObject("name");
...
2
votes
1
answer
1k
views
Esoteric JScript hosting problem: where is the error code when IDispatch::Invoke returns SCRIPT_E_PROPAGATE?
Our application hosts the Windows Scripting Host JScript engine and exposes several domain objects that can be called from script code.
One of the domain objects is a COM component that implements ...
0
votes
4
answers
3k
views
What is the C++ equivalent to GetObject in JavaScript and VBScript?
What is the C++ equivalent to GetObject in JavaScript and VBScript?
The closest match I found to my question is:
http://codewiz51.blogspot.com/2008/06/vb-script-getobject-c-api-cogetobject.html
...