Jump to content

LUA DLL - "The specified procedure could not be found."


Tango

Recommended Posts

: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 by Tango
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...