I am new to SpiderMonkey! I tried to make a simple program in VS.NET
2003 C++ but somehow some crazy exception is occuring.... Actually
what i did is...
1. download the SM... I got version js-1.60
2. build the SM... I tried this one by open js.mdp, convert it to
VS.NET 2003 project and build it...
3. i copy the js32.dll into my project debug folder
4. i copy the js32.lib into my project library folder
5. i copy all the header file in js source code... into my project
include folder <--- is this right? because if i not doing that, the
compiler doesnt understand the SM functions.
6. i tried to compile my project code such as
#define XP_WIN
#include <jsapi.h>
int main()
{
JSRuntime *rt = JS_NewRuntime(1000000L);
if ( rt == NULL )
{
}
return 1;
}
7. and I got the exception like
Unhandled Exception: System.TypeLoadException: Could not load type
JSRuntime fro
m assembly SpiderMonkey, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null.
at main()
I just not sure about copying all the header file into my project
file... or anyone can point out any problem in here? Oh yeah btw... I
tried also executing in mingw32... but after compiling, it crashes
straight away... Thanks very much!