We have a VB .net GUI front end and a back end in NetExpress COBOL.
I am trying to call the NetExpress COBOL executables from the VB, which worked in the past. However, the setddldirectory is pointing to C:\\MPIUADEV\\MPIUA\\DEV\\visualcobol\\bin and it should be using the path where the NetExpress code is. I don't know how it got changed and/or how to change it back to point to the correct directory,
SetDllDirectory()
If NativeMethods.SetDllDirectory(CobolDirectory) Then
NativeMethods.RMVBEBTCH(batchLinkage)
Else
Throw New EbixException("Unable to set COBOL Directory.")
End If
Return batchLinkage
End Function
Public Shared Sub SetDllDirectory()
If Not String.IsNullOrWhiteSpace(CobolDirectory) Then
ChDrive(CobolDirectory)
ChDir(CobolDirectory)
End If
End Sub
#vb.net
#setdlldirectory
#netexpress