An object-oriented programming language developed by Microsoft that can be used in .NET.
Try something like this:
Console.WriteLine( ch341opendevice(0) )
Pass the correct parameter if 0 is not suitable.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I write these four lines in my code and receive 'BC30201' expression expected error.How can I resolve this error please help.
the lines are:
Private Declare Function ch341opendevice Lib "ch341dll.dll" (ByVal iindex As Integer) As Integer
Sub main()
Console.WriteLine(ch341opendevice(Byval iindex as integer) As Integer)
End Sub
An object-oriented programming language developed by Microsoft that can be used in .NET.
Try something like this:
Console.WriteLine( ch341opendevice(0) )
Pass the correct parameter if 0 is not suitable.
Hi @kaveh rahimi ,
A parameter of method should be a specific value or variable, not a declaration of another method.
You need to pass the result of ‘ch341opendevice’ into ‘Console.WriteLine’ method.
Sub Main()
Dim result As Integer = ch341opendevice(0)
Console.WriteLine(result)
Console.ReadLine()
End Sub
Best Regards,
Xingyu Zhao
*
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.