I wrote an Open Watcom Fortran-77 "Hello World" Program, but I did not use the Open Watcom IDE.
Assuming Open Watcom Fortran-77 has been installed on your computer and properly setup you
should be able to follow my detailed instructions for creating a "Hello World" program.
>>>>>>>>>>>>>>>>>>>>>>>>>>> OPEN WATCOM TEXT EDITOR <<<<<<<<<<<<<<<<<<<<<<<<<<<<
Step 1: Start the Open Watcom Text Editor by Clicking the "Start" button and then
click on "All Programs" then click on "Open Watcom Fortran" and then select "Text Editor".
Step 2: Using the Open Watcom Text Editor, click on "File" and select "New".
Step 3: Click on "File" and select "Save As"
Step 4: Provide a name for your program (Hello.For).
Step 5: Choose "Fortran Files" from the "Save As Type" Drop Down.
Step 6: Click on the "Save" button.
Step 7: Copy the following program below into your "Open Watcom Text Editor":
******************************************************************
** AUTHOR: SAM MANIOTES
** PROGRAM: HELLO.FOR
** DATE: 10/25/2011
** LANGUAGE: OPEN WATCOM FORTRAN-77
** DESCRIPTION: This program displays the words "Hello World" in a windows dialog box.
******************************************************************
**
*$include winapi.fi
*$noreference
INTEGER*2 FUNCTION FWINMAIN( hInstance, hPrevInstance,
& lpszCmdLine, nCmdShow)
INTEGER*2 hInstance, hPrevInstance, nCmdShow
PARAMETER (FORM='(A,I5,A,I5)')
WRITE(BUFFER, FORM) 'Hello World!'
CALL MessageBox( 0, BUFFER,
& 'Sam Maniotes - Open Watcom Fortran-77'c,
& MB_OK .OR. MB_TASKMODAL )
********************************************************************************
***NOTE: Remember the Fortran-77 Continue Statements must begin in Column 6,
and Continue Statements start with the ampersand (&) Character.
Step 8: Click on "File" and then select "Save", to save your program.
Step 9: Click on "File" and then select "Exit" to exit the Text Editor.
***NOTE: You could download the program from the "hello.txt" file I attached below and rename it to "hello.for".
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> NOTEPAD <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Step 10: Using Notepad copy the following commands:
wfl386 -l=win386 hello.for
wbind hello -n
Step 11: Click on "File" and then select "Save As" and name the file "Make.Bat".
***Note: Save this file in the same location as your "Hello World" (Hello.For) program is located.
Step 12: Click on the "Save" button
Step 13: Click on "File" and the select "Exit" to exit Notepad.
***NOTE: You could just download the file "make.txt", that I attached below and rename it to "make.bat".
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> MAKE HELLO WORLD <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Step 14: Using Windows Explorer navigate to the location of your "Hello World" program and double click on the "Make.Bat" file.
Step 15: After the "Make.Bat" script executes, you should notice a "hello.exe" file in the same location as your "Hello World" Fortran program.
Step 16: Double Click on the "Hello.exe" file, and you should notice a Windows Dialog Box display with the words "Hello World!" inside of it.
I hope this helps...