The IDispatch class that replaces the functionality
of wd 'ole...' commands is now implemented acting as equivalent 
to the "oleautomation" case, i.e. for windowless components.
It features familiar Visual Basic style calling.

See examples at  http://www.jsoftware.com/jwiki/Addons/general/pcall


--- Oleg Kobchenko <[EMAIL PROTECTED]> wrote:

> Due to polular demand, such as OpenGL shaders
>   http://www.jsoftware.com/jwiki/Raul_Miller/OpenGL/Page3
> 
> the proof of concept pcall example is now turned into
> fully functional Addon. Windows is right now, but can
> easily be ported to UNIX, since the idea is trivial.
> 
> In the process, another set of functions was implemented
> providing interface pointer call (C++ equivalent of "this" call).
> 
> See new examples of test_icall and test_com call to
> see how it makes it easy to use COM, with native calls,
> not using the dispatch scripting interface, like
> wd 'olemethod' does or VBScript (or VB in late binding mode).
> 
> That is in J now it is possible to call COM the same way
> ATL or compiled VB early binding does, which translates
> to greater speeds and less memory thrushing.
> 
> What's next? I see two weekend projects that will allow
> to use COM in a high-level and safe manner by application code:
> 
>  - IDispatch feature to replace wd'ole' with the
>    help of conversion from HWND to ActiveX interface,
>    having advantage of natural call signature and boxed parameters
> 
>  - automated wrapper generator, for given typelib, of
>    all interfaces as J classes, similar to midl output.
>    This would make it possible to use COM natively with
>    convenient and type-safe calls
> 
> Potentially there are other interesting possibilities,
> such as interop with other languages like Java natively,
> working directly with their hosted GUI, using custom
> controls like ActiveX there, etc.



 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to