Re: DLL

Laurence Mitchell <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <LISTSERV%[email protected]>
Thanks,  that is the information I was likely looking for.  I will try that
and see.  I did, however, successfully use JNIWrapper to communicate with
the DLL  (some difficulty).  I would prefer to use JAWIN and will continue
working on it.

One of the headers I am having a problem with is:
extern "C" __declspec(dllexport) int USBm_SPIMaster(unsigned char, unsigned
char *, unsigned char *);

The problem was that none of the 'shortcut' invokes worked.  I know now that
I can use the generic... but what is the equivalent 'unsigned char *' in
Java?  Is there a link to cross=reference c and Java types?


On Mon, 24 Jan 2005 21:02:59 +0100, Morten Andersen <[email protected]> wrote:

>Hi Laurence
>
>Laurence Mitchell wrote:
>> I'm not understanding something...
>>
>> I have a dll called USBm and a an associated header file.  How can I access
>> the methods inside the dll?  I tried the sample code and it workds ok.
>>
>> I adapted the sample code to use the dll I want, and I was able to get 2
>> methods to work.  The other methods would require overloading the FuntPtr
>> differently.
>>
>> Typebrowser cannot read the dll correctly...
>>
>
>The TypeBrowser mainly supports COM-objects. I assume your DLL is
>exporting "old-style" DLL entry points. So unfortunately the TypeBrowser
>can not help you generate wrapper code for this DLL.
>
>I assume that you uses the latest binary jawin release? If this is the
>case I suggest that you try to use the latest source and documentation
>directly from CVS. Especially the documentation about eg. DLL'entry
>points have been updated a lot since the last binary release (I think
>you can perhaps see it directly (without proper style) from the
>SourceForge.net CVS viewer:
>http://cvs.sourceforge.net/viewcvs.py/*checkout*/jawinproject/jawin/docs/jawinuserguide_dll.html?rev=1.6
>).
>
>This page:
>        http://jawinproject.sourceforge.net/jawindeveloper.html
>describes how you check out and build the Jawin source manually (you
>don't need to build the native source).
>
>If this doesn't help you, feel free to post eg. one of the method
>headers that you don't know how to call.
>
>Good luck and best regards
>Morten
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.