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

  • From: "Jim Snowbarger" <snowman@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 14 Jul 2015 18:12:40 -0500

Pete,
If you get this solved, be sure to fill us in on it. Thanks.
Jim


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Peter Torpey
Sent: Tuesday, July 14, 2015 12:46 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Creating a Com Object in JAWS scripts

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




__________�

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

Other related posts: