[Jprogramming] PInvoke signatures for j.dll
Greg Borota
borota at gmail.com
Tue Mar 19 14:30:54 UTC 2013
I am successfully marshaling the huge J struct between .NET and j.dll and
no error. It looks like the PInvoke approach is going to work.
I want to create a C wrapper between j.dll and .NET to hold the J singleton
and reduce the marshaling between the two worlds.
Are these document anywhere or could somebody in a few words explain what
each of these functions do:
>dumpbin /EXPORTS j.dll
6 4 00079200 JBreak
7 5 00079200 JClear
8 6 00079050 JDo
25 7 0007A860 JDoR
9 8 0007A730 JErrorText
22 9 0007A7D0 JErrorTextB
10 A 000786F0 JErrorTextM
11 B 0007AB20 JFree
12 C 00079610 JGet
26 D 00077D70 JGetA
23 E 00079700 JGetB
19 F 00077EC0 JGetLocale
13 10 00078300 JGetM
14 11 0007AA90 JInit
15 12 00079200 JIsBusy
18 13 00077E90 JSM
16 14 0007A590 JSet
27 15 00077DD0 JSetA
24 16 0007A660 JSetB
17 17 00078630 JSetM
21 18 0007A7C0 JTranspose
20 19 00077EF0 Jga
On Mon, Mar 18, 2013 at 6:44 PM, bill lam <bbill.lam at gmail.com> wrote:
> IIRC pinvoke does not use COM. Instead it calls the C interface
> of a dll.
>
> there is an exmaple of calling j.dll in the folder
> examples/dll/ in J602.
>
> More complete header file for j.dll and how to call it is
> available in GPL j source.
>
> You may also find information in the jqt repos, in particular the
> files jsvr.[h/cpp] and svr.[h/cpp].
>
> The difficult part is calling .Net from J. I guess this is
> impossible for C#. One needs mixed mode provided by vc++.
>
> Пн, 18 мар 2013, Greg Borota писал(а):
> > Has anybody used/created pinvoke C# signatures and used j.dll from .NET?
> > If so, any feedback, how was that working?
> > Also would there be interest in having pinvoke signatures someplace for
> > others to use?
> >
> > For non-windows users out there, apologies.
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list