Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using RMCOBOL v7.0 to run a VB6 program 1

Status
Not open for further replies.

MatrixFreak

Programmer
Sep 18, 2003
3
US
Can RMCOBOL v7.0 run a VB6 program? If so, what commands would be necessary?
 
What do you mean by "run".

1-It can issue a "call system using command line" and launch the program. Yes.

2-Call the program directly as if it was another COBOL program . Yes with some help from a C dll.

3-Use a OCX/DLL object properties within COBOL. Yes with third party tools (either COBOL/WOW or SP2)


More info is required for a full answer to your question.



Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
By 'run' I mean that it executes an exe file that was written with Visual BASIC 6.0. Something like ShellExecute from the Win32API. After the COBOL program is executed, it tells an executable written in Visual BASIC 6.0 to execute also in order to perform additional tasks. What would 'call system using command line' do?
 
call "SYSTEM" using command-line.
where command line is any executable available on the system, along with parameters to it.

So to start notepad.exe the following could be done.

01 cmd-lin pic x(80) value "notepad.exe c:\autoexec.bat".

call "SYSTEM" using cmd-lin.

This would start notepad.exe on a new window.

note that the call system does not allow you to exchange information with the called program (apart from the command line parameters supplied as part of the call).




Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
I the command out and it works just as i wanted it to. Thanx!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top