Can Anyone tell me how to obtain Handle and HWND in linux

1,337 views
Skip to first unread message

Unknown

unread,
Oct 27, 2010, 12:11:55 PM10/27/10
to jniwrapp...@teamdev.com

I am trying to calling a scanner a Shared Object library(.SO) named LsAPI.SO which is having having different function. I am trying to call its LSConnect Function its Syntax is as follows in native -->В В  intВ  LSConnect(HWNDВ  hWnd, HANDLEВ В В  hInst, short Peripheral, short *hConnect);



I have to write java application to call this Shared Object library(.SO) files with above Syntax on Linux Platform but it wont work I have used here WinPack API but it only works with Windows OS. pls any one help me

The ZIP file contains the java source and LsApi.so file

you may contact me on har...@sprylogic.com


Unknown

unread,
Oct 27, 2010, 12:12:33 PM10/27/10
to jniwrapp...@teamdev.com

WinPack library is designed for Windows platform only. It's not supposed to be used on Linux platforms.

We do not provide any library which would help you to obtain a handle of a window on Linux platform. But you can easily get it using a Linux specific API which provides such ability to get a native handle from a specified window.

Also, the HWND type that you are trying to use is Windows specific data type. In WinPack there is Wnd type for this, which is actually Pointer.Void type.

Hope it helps.

-Serge


Unknown

unread,
Oct 27, 2010, 12:13:15 PM10/27/10
to jniwrapp...@teamdev.com

hey man thnaks for you help. You have locked that thread last day thats why I am replying here


Unknown

unread,
Oct 27, 2010, 12:13:03 PM10/27/10
to jniwrapp...@teamdev.com

again one my last doubt about JNIWrapper.
I am using JNIWrapper on Linux and also I want to access native linux platform specific features.
So how whats the solution? there is any library to wotk with native linux platform and which is compactible with JNIWrapper?


Unknown

unread,
Oct 27, 2010, 12:13:00 PM10/27/10
to jniwrapp...@teamdev.com

hey thanks for your help. From last few days I am posting lots of my doubts about JNIWrapper.
Now I am clear with all the aspect of JNIWrapper on linux and Windows Thank you for being so patient with me.


Reply all
Reply to author
Forward
0 new messages