2 messages in net.java.dev.jna.usersRe: [jna-users] Clearing winxp consol...
FromSent OnAttachments
Aliaksandr BelakurskiMar 2, 2009 8:33 am 
Timothy WallMar 2, 2009 8:57 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:Re: [jna-users] Clearing winxp console with clrscr()Actions...
From:Timothy Wall (twal@dev.java.net)
Date:Mar 2, 2009 8:57:27 am
List:net.java.dev.jna.users

you need to check msdn to find out what DLL implements clrscr, and use that in place of msvcrt.

On Mar 2, 2009, at 11:34 AM, Aliaksandr Belakurski wrote:

Hi, i need some help. I have had troubles with mapping clrscr() C++ function.

I tried to change printf() function in the following example to clrscr() but it did not properly work.

public class HelloWorld {

public interface CLibrary extends Library { CLibrary INSTANCE = (CLibrary) Native.loadLibrary((Platform.isWindows() ? "msvcrt" : "c"), CLibrary.class);

void printf(String format, Object... args); }

//and so on }

Tell me please, which library i should use instead of "msvcrt"?