Re: DLL

Morten Andersen <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Hi again

Laurence Mitchell wrote:
[SNIP]
>
> 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?
>

Thats a "problem" with C, it could be either an [out] value (ie. a
pointer to a char), or it could be an [in] value (ie. a char-array).

I would assume the last one, but you can hopefully see it out of context
for the documentation for the method.

You could try the "G"-instruction string for each char*. Please check
the docs/instruction_docs.html file (although it may be obsolete and
inaccurate on a few points, it should hopefully help you).

Hope this gets you a little bit closer to your goal.
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.