[jawsscripts] Re: Creating a Com Object in JAWS scripts

  • From: "Peter Torpey" <ptorpey00@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 14 Jul 2015 14:38:34 -0400

I don't know what a dispatched object is. How can I tell? Is that something
to do with the coding in C++ or how the project is compiled in Visual Studio?

--Pete




-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Soronel Haetir
Sent: Tuesday, July 14, 2015 2:15 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Creating a Com Object in JAWS scripts

Is the object dispatch based? (either dual or purely an IDispatch
implementation)..

Jaws is not capable of dealing with non-dispatch based objects.

On 7/14/15, Peter Torpey <ptorpey00@xxxxxxxxx> wrote:

I created a DLL using Visual Studio and would like to connect objects in
the
DLL in my JAWS scripts.


I am not seeing the object in JAWS and wonder if anyone has any pointers.
Here is what I did:



1. Compiled test.DLL and made sure the manifest was embedded in the
DLL (in the Visual Studio Properties dialog).

2. Registered the DLL in Windows using:
regsvr32 (full path to DLL)
The return said that the DLL was properly registerd.

3. In my JAWS scripts I have the lines:
var object o = CreateObjectEx( "ObjectName", false, "test.dll" )



Besides the fact that I am unable to access any of the methods of the DLL
from within JAWS, I have a test like:



If !o then

SayString( "object was not created";

EndIf



That verifies that the object was not created.



What am I doing wrong here? Is there something I'm missing in the call to
CreateObjectEx or how one should set the properties inside VS to get this
to
work?



Thanks.



--Pete





__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts




--
Soronel Haetir
soronel.haetir@xxxxxxxxx
__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts


__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts

Other related posts: