要注册吧,用下面的函数: Public Declare Function RegMyServerObject Lib "MInterface.dll" _ Alias "DllRegisterServer" () As Long 然后在Form_Load中先调用。
Public Declare Function Start Lib "MInterface.dll" (ByVal pLength As Long, ByVal pHostName As String, ByVal pPort_in As Long, ByVal pPort_out As Long) As Integer用绝对路径试试,如"Public Declare Function Start Lib "D:\test\MInterface.dll",如果行就改成App.Path."气得我当场昏倒",哪一年的事?
to foolishtiger(吴文智): 呵呵,我就是用的绝对路径啊。声明的时候难道还能用App.Path?to basey(杨不同): 那个DLL是我用VC写的标准的DLL,只用于输出函数,不用注册的。
Public Declare Function RegMyServerObject Lib "MInterface.dll" _
Alias "DllRegisterServer" () As Long
然后在Form_Load中先调用。
为了为您创建更好的讨论环境,请参加我们的用户满意度调查(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。
今天睡眠不足,看什么东西都象隔着一层雾,古龙说得好“雾里看花最销魂“,我是“雾里看花最头晕”。
同意acptvb(微软全球技术中心 VB技术支持)
然后实现我要的函数。不过我输出函数是用.def输出的,不是象Msdn里建议的那样。但我想应该不是这个问题造成的吧。
我的程序本来是在win98下运行,现在是在NT下运行,我也感到非常奇怪.不过我以前装了VC,现在没庄
想想还是acptvb(微软全球技术中心 VB技术支持)有道理