Copy and pasted from dos console on windows xp machine: (there should be j.dll in the current path)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Inte win32 Type "help", "copyright", "credits" or "license" for more information. >>> from ctypes import * >>> ppj=oledll.j.JInit() >>> oledll.j.JDo(ppj,"a=:+/i.100") 0 >>> pi4=[pointer(c_int()) for _ in xrange(4)] >>> oledll.j.JGetM(ppj,"a",*pi4) 0 >>> c_int.from_address(pi4[3].contents.value).value 4950 >>> On Wed, Apr 28, 2010 at 3:12 AM, Richard Kubina <[email protected]> wrote: > I am a J rookie. I don't get to use it as much as I'd like. My plan is to > mix it into python. So far, I have used J.DLL and saw that JDo is there, > but I don't know how to call it. I get an access violation writing > and JGetM has access reading violations. > > My only experience with this sort of thing is the interop with VB.NETwhich > worked well, I don't see what is going on here though. For example, that > .NET interop was using j.exe and called 'Do' and not 'JDo' Is that the way > to go? I know this is probably more on the Python side of things, but any > details on J.DLL or whatnot would be great! > > Thank you, > > Richard > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
