Hi All,
I am converting one of VB 6 apps to .Net. This application gets called by DOS. Application sends return code to dos. How can I do the same in VB .Net? The code in VB 6 looks as shown below.
Dim VarData as integer
Private Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As Long)
If VarData= 1 then
ExitProcess (1&)
end if
I am converting one of VB 6 apps to .Net. This application gets called by DOS. Application sends return code to dos. How can I do the same in VB .Net? The code in VB 6 looks as shown below.
Dim VarData as integer
Private Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As Long)
If VarData= 1 then
ExitProcess (1&)
end if