VB.NET中API函数问题
代码如下PrivateDeclareFunctionGetPrivateProfileStringLib"kernel32"_Alias"GetPrivateProfil...
代码如下 Private Declare Function GetPrivateProfileString Lib "kernel32" _ Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, _ ByVal lpKeyName As Long, ByVal lpDefault As String, _ ByVal lpReturnedString As String, ByVal nSize As Long, _ ByVal lpFileName As String) As Long Private Declare Function WritePrivateProfileString Lib "kernel32" _ Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, _ ByVal lpKeyName As Any, ByVal lpString As Long, _ ByVal lpFileName As String) As Long'我先宣告这两个函数 到这里呼叫时 Private Sub But1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButQQ.Click Dim success As Long success = WritePrivateProfileStringA("path", "strQQPath", " C:\Program Files\Tencent\QQ\Bin\QQ.exe", "D:\程序精灵\path.ini") 为什么他说我WritePrivateProfileStringA
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询