标题:[求助]救命啊,要死人啦,引用DLL为什么报错?一切语法正确啊!
只看楼主
nj777
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-6-14
 问题点数:0 回复次数:0 
[求助]救命啊,要死人啦,引用DLL为什么报错?一切语法正确啊!
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      Private AUTO Declare Function PlaySound lib "winmm.dll" (ByVal lpszSoundName As String, ByVal hModule As Integer, ByVal dwFlags As Integer) As Integer
        Const SND_FILENAME As Integer = &H20000
        Const SND_ALIAS As Integer = &H10000
        Const SND_SYNC As Integer = &H0
        Dim mstrfileName As String = "c:\test.wav"
        PlaySound(mstrfileName, 0, SND_FILENAME)
    End Sub
C:\OziExplorer\ozitest\Form1.vb(70): AUTO关键字作为标识符无效。
C:\OziExplorer\ozitest\Form1.vb(75): 名称“PlaySound”未声明。

图片可以点击放大看现场:


[此贴子已经被作者于2005-6-14 15:03:04编辑过]


搜索更多相关主题的帖子: DLL 语法 救命 
2005-06-14 15:02



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-20849-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.249955 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved