View previous topic :: View next topic |
Author |
Message |
clint
Joined: 14 Jun 2006 Posts: 37
|
Posted: Wed Jun 14, 2006 8:15 am Post subject: Win32Api.ins - error 904 |
|
|
Does anyone know the cause the following errors please?
C:Program FilesSalford SoftwareFTN95includeWIN32API.INS(11) : error 904 - Return type is expected.
Found (VAL,REF,STRING,VAL,STRING,REF):INTEGER*4 (In include file C:Program FilesSalford SoftwareFTN95includeWIN32API.INS)
C:Program FilesSalford SoftwareFTN95includeWIN32API.INS(13) : error 904 - Return type is expected.
Found (VAL,VAL,REF):INTEGER*4 (In include file C:Program FilesSalford SoftwareFTN95includeWIN32API.INS)
C:Program FilesSalford SoftwareFTN95includeWIN32API.INS(15) : error 904 - Return type is expected.
Found (VAL,STRING,VAL,STRING):LOGICAL*4 (In include file C:Program FilesSalford SoftwareFTN95includeWIN32API.INS)
C:Program FilesSalford SoftwareFTN95includeWIN32API.INS(17) : error 904 - Return type is expected.
Found (VAL,STRING,VAL,STRING):LOGICAL*4 (In include file C:Program FilesSalford SoftwareFTN95includeWIN32API.INS)
C:Program FilesSalford SoftwareFTN95includeWIN32API.INS(1 : error 904 - Return type is expected.
Found (VAL):INTEGER*4 (In include file C:Program FilesSalford SoftwareFTN95includeWIN32API.INS)
...................
(and so on for all declarations in file) |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Wed Jun 14, 2006 9:56 am Post subject: Win32Api.ins - error 904 |
|
|
It might be something to do with the compiler options that you are using.
Try a simple program (prog.f90)....
INCLUDE <win32api.ins>
PRINT*, "Hello"
END
and run the following from a DOS box....
FTN95 prog
[Note that the include file is designed to work for both fixed and free format Fortran.] |
|
Back to top |
|
|
clint
Joined: 14 Jun 2006 Posts: 37
|
Posted: Thu Jun 15, 2006 4:24 am Post subject: Win32Api.ins - error 904 |
|
|
This program works.
Project: FTN95Application (not the extension or clearwin)
However I cannot call any win32api functions. (e.g. MESSAGEBOX)
|
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Thu Jun 15, 2006 6:10 am Post subject: Win32Api.ins - error 904 |
|
|
Clint
You can only use Win32Api.ins with a Win32 application or extension.
It will not work with .NET. |
|
Back to top |
|
|
|