Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9423
| From | simplicity <stella_pigeon@live.ca> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Trivial question? |
| Date | 2011-11-02 22:04 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <9ae6e06c-222e-4911-97e8-af9511b8772a@t38g2000prg.googlegroups.com> (permalink) |
Why do the examples always have to be completely disconnected from the reality? I am trying to create a simple prototype which interfaces with the native DLL using JNA. So, following the JNA tutorial, I specify the native function as int func(int) just as it is in the C++ header. When I run the java program it fails with "module not found" exception. After a bit of digging inside the DLL I see that it rightly so: my function is actually _func@0 rather than func. OK, so back to Java code and change the the native to what it really is. Syntax error!!! Java will not take _func@0 as a function name. Because of "@", I guess. So, here is my "trivial question": How can I put this name with "@" to allow Java to digest it without complaints?
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
Trivial question? simplicity <stella_pigeon@live.ca> - 2011-11-02 22:04 -0700
Re: Trivial question? markspace <-@.> - 2011-11-02 22:54 -0700
Re: Trivial question? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-03 08:24 +0000
Re: Trivial question? simplicity <stella_pigeon@live.ca> - 2011-11-03 10:28 -0700
Re: Trivial question? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-03 22:13 +0000
Re: Trivial question? Roedy Green <see_website@mindprod.com.invalid> - 2011-11-03 08:14 -0700
Re: Trivial question? Roedy Green <see_website@mindprod.com.invalid> - 2011-11-03 08:15 -0700
csiph-web