My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
README  
One-sentence summary of this page.
Updated Nov 11, 2009 by Ziyu4Hu...@gmail.com

Introduction

Add your content here.

Details

Add your content here. Format your content with:

  • Text in bold or italic
  • Headings, paragraphs, and lists
  • Automatic links to other wiki pages

code snap of JNA (scala)

import com.sun.jna._
object HelloJNA extends Application {
  @native def cos(d:Double) : Double
  @native def sin(d:Double) : Double
  Native.register(if(Platform.isWindows()) "msvcrt" else "m")
  println("HelloWorld")
  println("cos(0) = "+ cos(0))
  println("sin(0) = "+ sin(0))
}
Powered by Google Project Hosting