Fortran PowerStation

Fortran PowerStation

Hi,

My name is D.SundarChand from Hyderabad,Telangana,India.Originally,I have developed in MSDOS Fortran 5.0 in 1983.After that I am busy with my Jobs.Now,I am a retired person.That is why I want to update that softwares in to Windows/Visual Fortran environment.I am facing trouble at the time of linking,call color, the below main routine and subroutine color routine from MSFLIB.F90 in the visual Studio Environment of Intel Visual Fortran 8.1,  Microsoft Fortran PowerStation 4.0 the color routine not working and it displays unresolved external symbols _bkcolor,_textcolor. Object file not created due to these 2 errors. How can I solve this problem?I tried in so many ways.but not succeeded.Please help me in this matter at the earliest.I have already developed interface to Assembly Language routines to Fortran.But in that also object file not created.Because they are in MSDOS Assembler 5.0.Only these 2 problems are pending.In assembler it is indicating no errors.but object file not created.

How to resolve these 2 troubles?

I.1.FORTRAN MAIN PROGRAM 

      CALL SETTEXTPOSITION (9,6,XY)

      CALL COLOR (#000000,#00ff00)

      CALL OUTTEXT('Year')

      CALL COLOR (#000000,#00ff00)

      CALL SETTEXTPOSITION (9,48,XY)

      CALL COLOR (#00ff00,#000000)

      CALL OUTTEXT('    ')

      READ (*,010)      YB

 010  FORMAT(I4)

          END

2.FORTRAN SUBROUTINE 

      SUBROUTINE COLOR (K,L)

      USE MSFLIB

      J=SETBKCOLOR(K)

      I=SETTEXTCOLOR(L)

      RETURN

      END

 

Kindly let me know the fault in the Main Program and Subroutine and their corrections.

 

II.1.CURSIZ.ASM
Data    Segment Public 'DATA'
Data    EndS
DGROUP  GROUP Data
Code    Segment 'CODE'
        Assume Cs:Code, Ds:DGROUP, Ss:DGROUP
PUBLIC  CURSIZ
CURSIZ  Proc   Far
        Push Bp
        Mov    Bp, Sp
        Mov Ah, 1
        Les     bx, DWord Ptr [Bp + 10]
        Mov ECH, Es:[Ebx]
        Les     bx, DWord Ptr [Bp + 06]
        Mov ECL, Es:[Ebx]
        Int
        Mov Sp, Bp
        Pop    Bp
        Ret 08
        CURSIZ  EndP
        Code   EndS
End

2.KEY.ASM 

DATA    SEGMENT PUBLIC 'DATA'
DATA    ENDS
DGROUP  GROUP DATA
CODE    SEGMENT 'CODE'
        ASSUME CS:CODE,DS:DGROUP,SS:DGROUP
PUBLIC  KEY 
KEY     PROC   FAR
        PUSH   BP
        MOV    BP,SP
        MOV    AH,0
        INT    
        LES    BX,DWORD PTR[BP+10]
        MOV    ES:[EBX],AH
        LES    BX,DWORD PTR[BP+06]
        MOV    ES:[EBX],AL
        MOV    SP,BP
        POP    BP
        RET    08
        KEY    ENDP
        CODE   ENDS
END

Kindly let me know the fault in the .ASM routines and their corrections.

 

Thanks,

 

with regards,

D.SundarChand

+091-8688568699

sunderchand1957@gmail.com

Zone: 

Thread Topic: 

Help Me
3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

The question seems off topic on this forum.  For questions about Intel Fortran on Windows, there is a specific forum:

https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-fo...

It may be difficult to answer questions about applications as obsolete as FPS, particularly if you can't say anything about your Windows version.

Brother mecej4,Namaste!

Thanks for your fast and quick help. Visited the build settings menu in the compiler and entered in the link menu /subsystem: console & /subsystem: windows. I am using currently Windows 8.0 for  MicroSoft FortranPowerStation 4.0.

I tried as per your guidance, but giving below 2 errors, 1 warning.

1. Internal Error-unexpected error

File “qwin\qwgraph\qwgutil.c”, line 1699.

2. After modified source as per your help note, at the time of running the .exe file, giving run-time error F6998: QWIN. Displayed the message on the monitor is”–using quick win is illegal in console application”.

3. Linking...

LINK: warning LNK4010: invalid version number /SUBSYSTEM: WINDOWS, /QWIN; default version assumed

tsun.exe - 0 error(s), 1 warning(s)

I am not worrying about the warning in above point 3.

4. As per your help note, in the FORTRAN properties page you also need quick win (/libs: qwin). I can’t find, where it is available? One properties menu available in Edit menu. Is it that? But it is source window properties.

 

What can I do?

Thanks,

With regards,

D.SundarChand

+091-8688568699

sunderchand1957@gmail.com     .

 

Leave a Comment

Please sign in to add a comment. Not a member? Join today