Professional Documents
Culture Documents
Java
Java
Java
* @returns Nothing (Because of void) */ Public Native void switchDeviceOn ( ); /** *Native code to switch off the device. Implemented in the * C file. * @returns Nothing (Because of void) */ Public Native void switchDeviceOff ( ); /** * Native code to return the status of the device. * Implemented in the C file. * @returns A blooean which Represents the status */ Public native boolean getDeviceStatus ( ); Status { System. loadLibrary (JavaLinkLibrary); } }
#Include <stdio.h> #Include <conio.h> #Include C:\JPC\PortControl\PortControl\PortController.h #Include C:\jdk1.1.5\include\StubPreamble.h Int status=0;