Java

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

Package PortControl; Public class PortController { /** Native code to switch on the device. Implemented in the * C file.

* @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;

You might also like