The general cd approach is to be restrictive and dogmatic about declaration
and parameter agreement. The consequences of allowing an incorrect call are
serious (crashes or memory corruption). My immediate reaction is against
suggestions for figuring out what the declaration should have been.
----- Original Message -----
From: "bill lam" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Sunday, September 23, 2007 9:36 PM
Subject: Re: [Jprogramming] passing unicode argument to dll
Hi Eric,
Not related to Kairit's original problem, but would you consider that *w
is redundant because the J interpretation knows whether the data is
utf8/utf16 and can choose between effect of *c/*w accordingly during
actual calling dll.
Eric Iverson wrote:
If the data is utf8 then you want *c declarations. If the data is utf16
then you want *w declarations.
--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm