怎样编写一个dll文件
我的类模块里写了这么一个简单的函数,然后把它编译成了一个dll(test.dll)文件,如下:
function test(Byval i as integer) as integer
msgbox i,vbokonly
end function
然后我在工程文件里用以下语句声明:
declare function test lib "test.dll" (byval i as integer) as integer
用如下语句调用
test(10)
运行时报错:找不到dll入口点,test in test.dll
请大家多帮忙,谢谢!