maxloddo
January 31st, 2005, 11:35 AM
Hi folks
I have an MFC wrapper for a Java client API. My main application is a Managed C++ Win App, but I also need to make the wrapper's functionality available to a few C# NT services. So I've set out to build a MC++ wrapper for the MFC code. So far so good. A selection of functions from the old MFC code is now available to all .NET clients.
Problems start when - calling a function to activate the JVM - execution reaches a point where GetStaticMethodID() from the JNI header is invoked. That's when I get the exception: 'Could not load type _jmethodID from assembly'.
If I remove the line where GetStaticMethodID() is called, execution carries on.
Has anyone ever come across anything similar?
Thanks
Max
I have an MFC wrapper for a Java client API. My main application is a Managed C++ Win App, but I also need to make the wrapper's functionality available to a few C# NT services. So I've set out to build a MC++ wrapper for the MFC code. So far so good. A selection of functions from the old MFC code is now available to all .NET clients.
Problems start when - calling a function to activate the JVM - execution reaches a point where GetStaticMethodID() from the JNI header is invoked. That's when I get the exception: 'Could not load type _jmethodID from assembly'.
If I remove the line where GetStaticMethodID() is called, execution carries on.
Has anyone ever come across anything similar?
Thanks
Max