Declare 关键字是干什么的?
我个人理解,Declare 就是用来访问System32下面东西的。
还请高人耐心解释一下!谢谢。
我也写了一个非常简单的DLL。(上网找资料发现,貌似不是标准DLL
我甚至都不知道为什么要写System32下面的DLL。不过觉得有意思。)
Public Class test
Public Function test1(ByVal a As Long, ByVal b As Long) As Long
Return a + b
End Function
End Class
在别的工程里引用,实例化一个对象,引用非常好用。
但是放到System32下面用regsvr32.exe注册,就报错。
就提示"无法在 DLL“test.dll”中找到名为“test”的入口点。"
请问这个test.dll应该怎么写?
怎么添加入口dllregisterserver?
先谢谢!