Newsgroups: comp.lang.apl
From: "ABC" <A...@enoemail.com>
Date: Mon, 17 Sep 2012 13:19:25 -0400
Local: Mon, Sep 17 2012 1:19 pm
Subject: Re: Problem pasing by reference to DLL
Hi, Graham,
Thank you very much. That was not a long shot, it was the correct answer!
My DSL is written in assembler (MASM). The APL-PLUS documentation includes Thanks again for your reply.
news:5eednf4YVtygpcrNnZ2dnUVZ_rSdnZ2d@giganews.com... > I'm calling a simple DLL from APL-PLUS Win 4.0 using []NA. The DLL Here's a long shot!!! Most none array type languages usually require a > accepts > a DWORD pointer. Here's the []NA syntax. > 'DLL I4<-Patterns_03.AddUp(*I4)' []NA 'Patterns_03'
> Then I call it this way:
> A <- (iota) 10
> Patterns_03 (A)
> I get: LENGTH ERROR
> If I call: Patterns_03 (A[1]) the DLL returns the correct result for > Any ideas?
pointer to an APL vector followed by the length of that vector. Is it possible to specify your []NA as: 'DLL I4<-Patterns_03.AddUp(*I4,I4)' []NA 'Patterns_03'
and then call:
Patterns_03 (A) ({rho}A)
ie the pointer is to the first element in A followed by the length of A. Graham.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||