JDirect
 
 

JDirect    PreviousJDirectNext
About J/Direct     Previous JDirect Next

 


Linking by Ordinal

Some DLLs export functions by ordinal (16-bit integer) rather than by name. To call such DLLs, you will need to use a method-level @dll.import directive to specify the ordinal. The syntax for ordinal linking is as follows.


  /** @dll.import("Libname", entrypoint="#ordinal") */ 

Note that ordinal is specified in decimal.

For example, to link a function exported as ordinal 82 in DLL "MyDll.DLL", you would write the following code.


  /** @dll.import("MyDll", entrypoint="#82") */
  public static native void MySample();

Top © 1998 Microsoft Corporation. All rights reserved. Terms of use.