This is a step-by-step guide to getting started at using JNI with C++ under Windows.
For class, I need to take some C++ code and compile it to a .dll file to use with JNI. I have MS Visual C++ 2005 Express (hey, it was free!). Searching around online, I found plenty of things that implied that it was possible to build a DLL with this version of Visual C++, but no specific instructions on how to do it. I actually found some forum posts by other people who were confused like me. Thus this post.