[CCC DEV] JNI - Native Calls to WinSparkle.dll
Matt Jadud
matt at jadud.com
Wed Jul 14 15:05:12 BST 2010
On Wed, Jul 14, 2010 at 9:55 AM, Dave Gilmore <gilmorenator at gmail.com> wrote:
> I could always just build an exe using C++ like the screenshots I sent
> you and call that from the plugin if all else fails,
That's an interesting question.
Christian, are we able to call WinSparkle from an external app?
Instead of using JNI, can we just call an external, command-line-based
C++ app that does the Sparkle work?
Not very pretty in some ways, but it might be faster/easier. (You both
know more than me about the Sparkle bits at this point...)
That said, the native glue code is really just a C/C++ function that
"looks right" to JNI (I suspect... again, haven't played with the Java
Native Interface since forever). Your wrapper function then calls the
same code you would call in your C++ app. So, really, the difference
is minimal between these a small stand-alone app and the wrapper. (Put
another way, your working C++ program is already, I suspect, 90% of
the way to having a working JNI wrapper for WinSparkle.)
Cheers,
M
More information about the developers
mailing list