Re: DLL

Morten Andersen <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
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.