本文介绍了错误消息:预期的行号。 。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我是VB的新手,遇到了错误信息,我不确定是什么问题...我试图用VB打开一个SSH隧道...


错误信息是:预期的行号,标签声明或声明结尾


这是代码......任何帮助都会受到赞赏..欢呼,娜塔莎



私有声明功能ShellExecute Lib" shell32.dll"别名ShellExecuteA ()

ByVal hwnd As Long,_

ByVal lpszOp As String,_

ByVal lpszFile As String,_

ByVal lpszParams As String,_

ByVal lpszdir As String,_

ByVal FsShowCmd As Long)

As Long




Private Sub Form_Load()

ShellExecute Me.hWnd,打开,C:/plink.exe"" -ssh"

-l tunnel -pw Cyber​​4me -L -batch 192.168.10.25"," c:\",

0

MsgBoxTunnel Open!


End Sub

Hi,

I am new to VB and have run into an error message and I am not sure what the problem is ... I am trying to use VB to open up an SSH tunnel ...

the error message is : "Expected Line number, label statement or end of statement


Here is the code ... any help would be appreciated .. cheers, Natasha



Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" ()
ByVal hwnd As Long, _
ByVal lpszOp As String, _
ByVal lpszFile As String, _
ByVal lpszParams As String, _
ByVal lpszdir As String, _
ByVal FsShowCmd As Long)
As Long



Private Sub Form_Load()
ShellExecute Me.hWnd, "Open", "C:/plink.exe", "-ssh"
-l tunnel -pw Cyber4me -L -batch 192.168.10.25", "c:\",
0
MsgBox "Tunnel Open!"

End Sub

推荐答案

展开 | 选择 | Wrap | 行号


展开 | 选择 | Wrap | 行号



这篇关于错误消息:预期的行号。 。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 00:17
查看更多