I have a VB Application and I call Cobol programs by doing a call using RUNCOBOL "program name".
I have noticed though in references in VB there is mention of "RM/Cobol Runtime 7.0 Type Library".
It seems that I can use this to do an initial call to run a cobol program, however if I then try to run a second program VB crashes.
Can anyone tell me if it is possible to use this Referrence and if so how?
The code I am trying to use is
Dim rmtest As RMCobolApplication
Set rmtest = New RMCobolApplication
rmtest.RunCommand("HELLOWORLD"
Set rmtest = Nothing
Cheers,
Hammy.
I have noticed though in references in VB there is mention of "RM/Cobol Runtime 7.0 Type Library".
It seems that I can use this to do an initial call to run a cobol program, however if I then try to run a second program VB crashes.
Can anyone tell me if it is possible to use this Referrence and if so how?
The code I am trying to use is
Dim rmtest As RMCobolApplication
Set rmtest = New RMCobolApplication
rmtest.RunCommand("HELLOWORLD"
Set rmtest = Nothing
Cheers,
Hammy.