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 

%mi and name of icon file in resource script

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
dpannhorst



Joined: 29 Aug 2005
Posts: 156
Location: Berlin, Germany

PostPosted: Wed Jan 25, 2017 4:58 pm    Post subject: %mi and name of icon file in resource script Reply with quote

In my 64bit project I am using this statement:

winio@('%mi[myicon]')

In my resource file is defined:

myicon ICON file.ico

Compiling and linking my project succeeds without errors.

Running the executable leeds to this Clearwin+ error message:

myicon is not available as an icon resource

Where is the problem?

Running the same project as 32bit executable is working as desired.

Detlef Pannhorst
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Wed Jan 25, 2017 6:04 pm    Post subject: Reply with quote

For 64 bit compilation, /r is required on the SRC command line.
Also, in some cases, an explicit call to SRC is required where previously a RESOURCES directive was sufficient.
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 558

PostPosted: Wed Jan 25, 2017 8:32 pm    Post subject: Reply with quote

which means in plain ingleesh for noddy's like me ! ? Smile
examples ?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Jan 26, 2017 8:19 am    Post subject: Reply with quote

Further information is available in the document NotesOn64BitFtn95.txt. This in turn assumes some familiarity with the main FTN95 documentation.

After that, which bit needs clarification?
Back to top
View user's profile Send private message
dpannhorst



Joined: 29 Aug 2005
Posts: 156
Location: Berlin, Germany

PostPosted: Thu Jan 26, 2017 9:06 am    Post subject: Reply with quote

I have used the /r option in the SRC comman line and I have also linked the resource.res file as described in the documentation.

Detlef Pannhorst
Back to top
View user's profile Send private message Visit poster's website
dpannhorst



Joined: 29 Aug 2005
Posts: 156
Location: Berlin, Germany

PostPosted: Thu Jan 26, 2017 9:35 am    Post subject: Reply with quote

Sorry, the problem has been solved now. From my different tries the the linking of the resource.res file was disabled in my link file. After enabling everything is working.

Thanks for all help.

Detlef Pannhorst
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Thu Jan 26, 2017 9:39 am    Post subject: Reply with quote

It works OK for me.

File mi.f95...
Code:
    WINAPP
    program main
    integer i,winio@
    i=winio@('%ww&')
    i=winio@('Hello&')
    i=winio@('%mi[myicon]')
    end
     


File mi.rc...
Code:
   myicon ICON wmdm.ico


FTN95 mi.f95 /64

SRC mi.rc /r

SLINK64
lo mi.obj
lo mi.res
file
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit 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