There are a couple of solutions to handle vtable indices.
First, for limited number of interfaces it's not so diffcult
to build vtable lookup as shown in pcall.ijs. It is done
with a simple copy/paste/trim from a header file.
 
To do a fully automated discovery in the standard way,
ITypeInfo can be used as shown in the second demo typeinfo.ijs.
It can be used to generate full J proxy together with cd
signatures, as midl does for C.
 
More at
http://www.jsoftware.com/jwiki/System/Beta/Pointer_Call

wd 'ole...' uses a much simpler IDispatch (late binding)
interface, which will also be simpler to emulate.
 

----- Original Message ----
From: bill lam <[EMAIL PROTECTED]>
To: Beta forum <[email protected]>
Sent: Thursday, June 29, 2006 8:59:18 PM
Subject: Re: [Jbeta] JDLLServer crashes on Release


Oleg Kobchenko wrote:
> There are a lot of neat things that could be done
> and J and COM: standard error handling with COM
> exceptions, J as scripting engine, exposing J objects
> as IDispatch objects, etc.


I also tried something similar but gave up. Calling a function address and 
variable number of parameters can be solved.  The main problem is, for early 
binding, co-ordinate for the function within vtable must be manually counted 
from help file or header file. This became tedious especially for inherented 
interface, did you come up with any idea to do it automatically?

regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to