Re: SALFORD ERROR?
- From: "Edward N Bromhead" <edward.bromhead@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 May 2007 23:57:18 +0100
Here's the code for a Hello World program using Fortran 77
and the Silverfrost "Clearwin" system:
OPTIONS (INTL)
WINAPP
PROGRAM HELLO
INCLUDE <WINDOWS.INS>
INTEGER IA
IA=WINIO@('%ca[Windows program]%cnHello World&')
IA=WINIO@('%2nl%cn%10bt[Quit]')
END
Could hardly be simpler. You get a Window with a title bar captioned
"Windows program", the message "Hello World", centred, and a "Quit" button,
also centralised on the line below. (Hints: %ca - caption; %cn - centre it;
%2nl - 2 new lines; %10bt - button 10 units wide).
The "nagging" screen appears with the free personal edition (which in every
other respect is the same as the commercial product) for a few seconds
when the program is run.
Not only do you get Clearwin, you also get the complete .NET windows
interface, which you have to run in conjunction with some other Microsoft
stuff. I think you haven't got the MS .NET stuff properly installed, which
is why
you get the DBK_LINK message. FWIW I can't understand all the .NET
stuff and just ignore it.
This is the above code modified to include a simple editable text string:
OPTIONS (INTL)
WINAPP
PROGRAM HELLO
INCLUDE <WINDOWS.INS>
INTEGER IA
CHARACTER*40 TEXT
TEXT='1234567890abcdefghij1234567890abcdefghij'
IA=WINIO@('%ca[Windows program]%cnEdit me: &')
IA=WINIO@('%40rs&',text)
IA=WINIO@('%2nl%cn%10bt[Done]')
WRITE(*,*) TEXT
END
Hmmmm .... not good on graphical interfaces? There's a steep learning curve
for the complicated stuff, but for simple windows, it's easy.
Eddie B
.
- References:
- F77 & WIN XP
- From: Big D
- Re: SALFORD ERROR
- From: Big D
- Re: SALFORD ERROR
- From: Herman D . Knoble
- F77 & WIN XP
- Prev by Date: Re: Fortran assumed-shape array problems with MPI
- Next by Date: Re: Running Windows Programs from Fortran
- Previous by thread: Re: SALFORD ERROR
- Next by thread: overloaded cant be distinguished by return values?
- Index(es):