If JDo fails it returns status code>0 of type long. text is pointer to error message (char** is long*).
require 'dll' ]j=. 'j JInit > i' cd '' 30084752 ]ec=. 'j JDo > i i *c' cd j;'1::' 16 et=: ,_1 'j JErrorTextM > i i i *i' cd j;ec;et 0 memr et,0,_1 spelling error 'j JFree > n i' cd j 0 ----- Original Message ---- From: Yuri Burger <[EMAIL PROTECTED]> To: Programming forum <[email protected]> Sent: Tuesday, November 28, 2006 3:21:55 AM Subject: Re: [Jprogramming] embedded J Ok, I found something like: ErrorTextM(long error, long* text, long* r) And what it should mean? I suppose to receive something close to error message, ie text. Why argument called 'text' is of type long pointer? And what is the argument 'r' ? ps: anyway, maybe I need something else... how can I receive error message from J engine, if the JDo call fails? > There are many examples of J DLL (COM) interface in > > http://www.jsoftware.com/jwiki/Guides/.NET_Interop > > A,B,M etc. are different suffixes that indicate > parameter format, such as J Array, Memory, COM variant, > BSTR, C string etc. > > To find interface signatures just search J folder > for ErrorText. > > > ----- Original Message ---- > From: Yuri Burger <[EMAIL PROTECTED]> > To: Programming forum <[email protected]> > Sent: Monday, November 27, 2006 1:01:11 PM > Subject: [Jprogramming] embedded J > > > Could somebody show me a definition of function JErrorTextM > > Thanks > > -- Yuri Burger, Senior Researcher Kiev Zoral Development Center ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
