# 为何呼叫DLL时,出现"Constants,Fixed-lenght strings,and arrays not allowed as Pubilc members of class module."??

Posted by 小伟 on December 02, 1997 at 02:42:21:

我在Form1中的general写入
Option Explicit
Declare Function mciSendString Lib "MMSYSTEM.dll" (ByVal ACommand As String, ByVal AReturnString As integer, ByVal AReturnLength As integer ,ByVal ACallBack As integer) As Long
在Run时出现了"Constants,Fixed-lenght strings,and arrays not allowed as Pubilc members of class module."
我又不是在class module中写的
请问错在哪里??
但当我在Declare前加入Private,即改写成
Private Declare Function mciSendString Lib "mmsystem.dll" ...就没
这个问题发生.
但在Form_load中又出现问题
Private Sub Form_Load()
Dim result As Long
result = mciSendString("open c:\3ds4\temp\dosokai\dsk_01.mid type sequencer alias dsk_01", 0&, 0, 0)
End Sub
它说Error in loading DLL
错误发生在"result = mciSendString("open c:\3ds4\temp\dosokai\dsk_01.mid type sequencer alias dsk_01", 0&, 0, 0)"
这句子又错了什么呢?
My VB is Ver.4.0 32-BIT

Follow Ups:

- 你观念错误喔! 小吴 02:04:34 12/03/97 (0)