|
楼主 |
发表于 2009-12-2 11:21:16
|
显示全部楼层
Ddid 大大,根据你的说法,我更新DLL ,现在可以执行MushClient 的实例代码,但是我在VBScript 调用如下代码是正常的:- Sub Greet
- Dim iCounter
- for iCounter = 1 to 10
- world.send "say Hi there"
- next
- end sub
- Sub FindRoomNo
- Set Phys = CreateObject("PhysServer2.NET_Temperature")
-
- PathStr = Phys.Search("1","960")
- world.send "say " + PathStr
- bRoomNo = Phys.findroomno("中央广场","none")
- world.send "say "+bRoomNo
- End Sub
复制代码 但是我 LUA 代码- assert (package.loadlib ("luacom.dll","luacom_open")) ()
- Phys = luacom.CreateObject("PhysServer2.NET_Temperature")
- --local RoomNo = Phys:Search(1,960)
- --print ( RoomNo)
- local RoomNo = Phys:findroomno("武庙","none");
复制代码 返回- Immediate execution
- COM exception:(G:\source\luacom\tLuaCOM.cpp,394):鏈?皢瀵硅薄寮曠敤璁剧疆鍒板?璞$殑瀹炰緥銆?
- stack traceback:
- [C]: in function 'findroomno'
- [string "Script file"]:5: in main chunk
复制代码 这个大概是什么方面的原因,是COM组件原因,还是我调用不正确?
谢谢回复
[ 本帖最后由 minipixy 于 2009-12-2 11:23 AM 编辑 ] |
|