actually you should NOT load the DLL manually, let it being loaded automatically instead, that happens automatically with standart settings if you have the DLL located in the gamestudio/ackenx_plugins folder, or you can set your plugin directory manually by adding:
plugindir = "pluginfoldername";
at the top of your script (NOT inside a function).
just copy the DLL into that folder and it should work.