flwyd: (java logo)
From Section 1.3.4 of GATE's manual:
After several hours struggling with badly written documentation, Fatima manages to compile the stubs and create a JAR file containing the new resources... She saves this and the version that she ran GATE on into her Oracle datastore (set up for her by the Herculean efforts of the Cyberdyne technical support team, who like GATE because it enables them to claim lots of overtime)...
flwyd: (java logo)
I'm working on some code to integrate our Java system with a 3rd-party COM object. (Yeah, lots of fun.) The COM object is designed to be used in a very procedural style: all methods return a boolean indicating success and provide values using pass-by-reference. If the method fails, you can call the GetLastError method to see what went wrong. The documentation for that method:

GetLastError

Retrieves the last error generated by the engine.

Syntax

bReturnValue = CalcEngine.GetLastError(ErrorMsg)

Parameters

bReturnValue Boolean/Integer: Returned as TRUE (integer = -1) when the operation is successful, and FALSE (integer = 0) when the operation fails. You can get the last error generated by invoking the GetLastError method.
What happens when you call GetLastError when GetLastError returns false is left as an exercise to the imagination.
July 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2017

Most Popular Tags

Expand Cut Tags

No cut tags

Subscribe

RSS Atom
Page generated Sunday, July 23rd, 2017 02:32 pm
Powered by Dreamwidth Studios