home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / COM / CustomMarshal / ansistr / AnsiMarshaler.java < prev    next >
Encoding:
Java Source  |  2000-05-04  |  830 b   |  34 lines

  1. //=====================================================================
  2. // (C) Copyright 1995 - 1999 Microsoft Corporation.  All rights reserved.
  3. //=====================================================================
  4.  
  5.  
  6. import com.ms.com.CustomLib;
  7.  
  8. public class AnsiMarshaler {
  9.  
  10.  
  11.  
  12.     // TODO: This field can normally be set to zero.
  13.     public static int CustomFlags = 0;
  14.  
  15.  
  16.     public static native String toJava(int ppETYPE, int flags);
  17.  
  18.  
  19.  
  20.     public static native void toExternal(String javaval,
  21.                                          int   flags,
  22.                                          int ppETYPE);
  23.     public static native void releaseExternal(int ppETYPE,
  24.                                               int flags);
  25.  
  26.  
  27.  
  28.  
  29.  
  30.     static {
  31.         System.loadLibrary("AnsiMarshaler");
  32.     }
  33. }
  34.