forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Win32Api.ins - error 904

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
clint



Joined: 14 Jun 2006
Posts: 37

PostPosted: Wed Jun 14, 2006 8:15 am    Post subject: Win32Api.ins - error 904 Reply with quote

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(1Cool : 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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7924
Location: Salford, UK

PostPosted: Wed Jun 14, 2006 9:56 am    Post subject: Win32Api.ins - error 904 Reply with quote

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
View user's profile Send private message AIM Address
clint



Joined: 14 Jun 2006
Posts: 37

PostPosted: Thu Jun 15, 2006 4:24 am    Post subject: Win32Api.ins - error 904 Reply with quote

This program works.

Project: FTN95Application (not the extension or clearwin)

However I cannot call any win32api functions. (e.g. MESSAGEBOX)

Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7924
Location: Salford, UK

PostPosted: Thu Jun 15, 2006 6:10 am    Post subject: Win32Api.ins - error 904 Reply with quote

Clint

You can only use Win32Api.ins with a Win32 application or extension.
It will not work with .NET.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group