On 8/5/2010 15:02, Raul Miller wrote:
> On Thu, Aug 5, 2010 at 2:21 PM, Zsbán Ambrus<[email protected]>  wrote:
>> On Thu, Aug 5, 2010 at 7:42 PM, Raul Miller<[email protected]>  wrote:
>>> (I am running cygwin on a windows xp system)
>>
>> What word size?  x86 or amd64?  (Sadly 9!:14 doesn't tell that.)
>
> 32bit
>
> On Thu, Aug 5, 2010 at 2:29 PM, Zsbán Ambrus<[email protected]>  wrote:
>> Try adding a + sign, eg.
>>
>>    gij=: a.i. 2{:: './gijl.so gij + n i *c' 15!:0 ];$&'x'
>>
>> I'm not familiar with cygwin so I'm not sure if that's the problem.
>
> That did not help.
>
> However, it is clear to me that your code is not getting called.  I
> need to work through some other cd examples to see if I can
> figure out what is going on here.
>
> FYI,
>

I tried creating a DLL using the code provided and MS Visual C++ Express.

This worked for me (Win7_64,J602_32).

NB. Test gij

require 'winapi dll'

gij=: '"c:\users\me\documents\visual studio 
2010\Projects\Gijswijt\Release\Gijswijt.dll" ?gij@@yaxh...@z +n i *c'&cd

foo=: 3 : 0
'xx1 xx2 xx3'=: gij 40;40#{.a.
xx4=:a.i.xx3
)

---
    foo''
1 1 2 1 1 2 2 2 3 1 1 2 1 1 2 2 2 3 2 1 1 2 1 1 2 2 2 3 1 1 2 1 1 2 2 2 3 2 2 2

--
David Mitchell
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to