question

kavehrahimi-5744 avatar image
0 Votes"
kavehrahimi-5744 asked XingyuZhao-MSFT commented

runtime error

I run my code and receive The program '[8588] dotnet.exe' has exited with code 0 (0x0).
my code is
Imports System.Runtime.InteropServices
Module main


 Function ch341streami2c(ByVal iindex As Integer, ByVal iwritelength As Integer, ByVal iwritebuffer As String, ByVal ireadlength As Integer, ByVal oreadbuffer As String) As String
     ch341streami2c = oreadbuffer
     Return oreadbuffer
 End Function
 Sub main()
     Dim ch341streami2c As Integer
     Dim oreadbuffer As Integer
     ch341streami2c = oreadbuffer

 End Sub


End Module


please help me
thanks

dotnet-runtime
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @kavehrahimi-5744 ,
Your code is equivalent to:

     Sub main()
         Dim a As Integer
         Dim b As Integer
         a = b
     End Sub

What do you want to do with your code?

0 Votes 0 ·

1 Answer

Castorix31 avatar image
0 Votes"
Castorix31 answered

I run my code and receive The program '[8588] dotnet.exe' has exited with code 0 (0x0).

This means that your program executed successfully...

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.