Solved it. For those ever dealing with this:
1) The part I forgot to mention above is that when calling a Win32 API, look at the MSDN documentation on the particular API you're calling. The library will be named there. Typically you've got to do two things:
a) add an .h file up top in your program, as in
#include <somestuff.h>
The particular .h file will be referenced in the MSDN docs.
b) add a comment to the linker to tell it where to find the actual code. It goes up top also:
#pragma comment (lib, "advapi32.lib")
2) I had already done those things before I posted... but a closer look showed that I'd created the problem myself! I'd created a function with a long name, and when I invoked it, I dropped a character. Stupid!
|