If you don't find a project file for your compiler, you can easily create your own project by adding all the files in the sdk/angelscript/source directory, and configuring the project apropriately. If you have a new compiler/target that hasn't been used with AngelScript before, you may need to edit the as_config.h file to make sure the library is compiled properly.
There are also a couple of other #defines used in the code to alter the compilation. When compiling the library you might want to define ANGELSCRIPT_EXPORT so that library functions are exported. If you include the library source code directly in your application project you shouldn't have to define this flag.
If AS_DEPRECATED is defined then some backwards compatibility is maintained, this can help you do the upgrade to the latest version a little more smoothly. There is no guarantee that the backwards compatibility will be maintained though so try to remove use of deprecated functions as soon as possible.
The files that need to use the library should include the angelscript.h header with no need for any special settings.
// Include the library interface #include "angelscript.h" // ... Start using the library
To use the library you only need to include the angelscript.h header file.
// Include the library interface #include "angelscript.h" // ... Start using the library
To use the library you'll have to define ANGELSCRIPT_DLL_LIBRARY_IMPORT before including the angelscript.h header file.
// Include the library interface #define ANGELSCRIPT_DLL_LIBRARY_IMPORT #include "angelscript.h" // ... Start using the library
To use manually loaded dll, you should define ANGELSCRIPT_DLL_MANUAL_IMPORT before including the angelscript.h header file. This will insure that the header file doesn't declare the function prototypes, as you will most likely want to use these names for the function pointers.
// Include the library interface #define ANGELSCRIPT_DLL_MANUAL_IMPORT #include "angelscript.h" // Declare the function pointers typedef asIScriptEngine * AS_CALL t_asCreateScriptEngine(int); t_asCreateScriptEngine *asCreateScriptEngine = 0; // ... Declare the rest of the functions // Load the dll and bind the functions (error handling left out for clarity) HMODULE dll = LoadLibrary("angelscript.dll"); asCreateScriptEngine = (t_asCreateScriptEngine*)GetProcAddress(dll, "_asCreateScriptEngine"); // ... Bind the other functions // ... Start using the library