Case address: https://github.com/brinkqiang/dmlua
This example is more complicated and should be able to cover many usage conditions. If this example can be debugged, many examples will be debugged.
More special points.
- Directory problem, the debug directory structure is as follows.

The compiled exe is in the Debug directory, and the script is loaded as the upper-level directory of the exe.
-
Calling method
The calling method in C++ is as follows.
CRole* poRole = CRoleMgr::Instance()->CreateRole();
poRole->SetName("andy");
poRole->SetHp(9999);
poRole->SetMp(9999);
unsigned int dwTaskID = 100;
LResultINT oResult(-1);
oDMLuaEngine.Call("script.task.task.AcceptTask", poRole, dwTaskID, &oResult);
-
seeall
The seeall attribute is set in the script. I don't know if it will affect it.
module (..., package.seeall)

Your help is very much needed.