3 messages in net.java.dev.jna.users[jna-users] using iostream with JNA
FromSent OnAttachments
Aekold HelbrassJun 18, 2009 5:19 am 
Timothy WallJun 18, 2009 6:58 am 
LYou...@gkservices.comJun 18, 2009 8:39 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[jna-users] using iostream with JNAActions...
From:Aekold Helbrass (helb@gmail.com)
Date:Jun 18, 2009 5:19:42 am
List:net.java.dev.jna.users

Hi All! I want to read chars from standard console input withour need to press enter button, as I can understand it's done in C like this:

#include <iostream> using namespace std; int main() { char ch; while ( (ch = cin.get()) != EOF) { cout << "ch: " << ch << endl; } return 0; }

But how can i invoke cin.get() using JNA? All valiants I tried did not worked.