Tango Posted August 22, 2012 Posted August 22, 2012 (edited) :huh::book::huh::huh::huh: I'm stuck. It appears to be attempting to load the DLL, but it has the error: 00011.390 ERROR COCKPITBASE: ccLuaLoader::LuaDofile(L, "./mods/aircrafts/L-39C/Cockpit/Systems/ElecSys.lua"): Can't execute Lua file ./mods/aircrafts/L-39C/Cockpit/Systems/ElecSys.lua - error loading module 'LUA' from file 'F:\DCSW DEV BUILD\trunk_nightly\bin\x86_64\LUA.dll': The specified procedure could not be found.What exactly is "The specified procedure" that it is apparently faling to execute??? I have: __declspec(dllexport) int luaopen_LUA(lua_State *L) { luaL_register(L, "LUA", LUAfuncs); return 1; }I also tried: extern "C" __declspec(dllexport) int luaopen_LUA(lua_State *L) { //...... }I'm out of ideas for this evening. :( Best regards, Tango. Edited August 22, 2012 by Tango
Tango Posted August 22, 2012 Author Posted August 22, 2012 Hmm - not sure what is different now but it is working! I didn't change the function name, but I did re-try extern "C" __declspec(dllexport)so maybe not in combination with int luaopen_LUA(lua_State *L) :music_whistling: Best regards, Tango.
DArt Posted August 23, 2012 Posted August 23, 2012 Same problem for me... However, my DLL works correctly with a standalone lua executable. Tango, could post a void lua dll example to show how you have implemented it? Thx [ https://www.lotatc.com ]
Tango Posted August 23, 2012 Author Posted August 23, 2012 Hi, Check the 3rd party dev forum. Best regards, Tango.
Recommended Posts