Major New User Problems

Barbara X <[email protected]> Fri, 2 Dec 2005 18:15:11 +0000
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
I am new to Jawin.  So far I have been able run the demos and they work
fine. I hava a COM object that I can use from VB and now I need to use it
from Java. I have been able to access two methods in this COM object, one
returns a String the other an Array.  So far so good.

My problem is, I have another method in the COM object that is returning a
reference to a DBASE (dbf/cdx) file.  From VB, once I have the Object back I
can do anything to the object I need, such as seek in the file, retrieve a
record, or Close it. Works in VB.

It is not working from Jawin. Calling getClass( ) I can tell that Jawin is
returning something of type DispatchPtr. I have even tried to cast it to
Object just to be sure. Given the following code, the second line will not
compile. Close() is a method of the dbServer created in the OpneDB( )
method.

Object oDbf = (Object) app.invoke("OpenDB", "customer.dbf");
oDbf.invoke("close");

Can anyone shed some light on this for me?   Is this a limitation of Jawin
or should I be using something other than DispatchPtr?

Thanks for any advice.

Barbara

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/