replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Does this code compile in 7.1 ?
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 

Does this code compile in 7.1 ?

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



Joined: 10 Mar 2008
Posts: 2923
Location: South Pole, Antarctica

PostPosted: Fri Sep 05, 2014 4:08 am    Post subject: Does this code compile in 7.1 ? Reply with quote

Please check. The code is from cwplus.enh, also as a separate file in same directory and is called some.f95. Worked before in 7.0.

Code:

       winapp
       program main
       include <windows.ins>
       c_external nARGB@              '__nargb'(VAL,VAL,VAL,VAL):integer
       c_external SET_SMOOTHING_MODE@ '__set_smoothing_mode'(VAL):integer
       
         iw = winio@("%gr&",450,200)
         call set_line_width@(8)
         call set_line_style@(PS_GEOMETRIC+PS_ENDCAP_SQUARE)
         call draw_line_between@(5,4,5,108,  nARGB@(255,0,0,255))
         call draw_line_between@(25,4,25,108,  RGB@(255,0,0))
         call draw_line_between@(5,10,25,10, nARGB@(255,0,255,0))
         call draw_line_between@(5,30,25,30, nARGB@(192,0,255,0))
         call draw_line_between@(5,50,25,50,   RGB@(255,0,255))
         call set_line_style@(PS_GEOMETRIC+PS_ENDCAP_FLAT)
         call set_line_width@(16)
         iw = set_smoothing_mode@(5)        !SmoothingModeAntiAlias8x8
         call draw_line_between@(50,4,150,104,         RGB@(255,0,0))
         call draw_line_between@(150,4,50,104,       nARGB@(192,0,0,255))
         call draw_ellipse@(225,60,50,50,            nARGB@(255,0,255,0))
         call draw_filled_ellipse@(225,60,50,50,     nARGB@(192,255,0,0))
         call draw_rectangle@(320,10,420,110,        nARGB@(255,255,0,0))
         call draw_filled_rectangle@(320,10,420,110, nARGB@(192,0,255,0))
         call select_font@("Arial")
         call size_in_pixels@(24,0)
         call italic_font@(1)
         call bold_font@(1)
         call draw_characters@("AntiAlias Smoothing", 65, 150, RGB@(255,0,0,255))
         iw = winio@(" ")
       end

call size_in_pixels@192,255,0,0
Back to top
View user's profile Send private message
jalih



Joined: 30 Jul 2012
Posts: 196

PostPosted: Fri Sep 05, 2014 6:12 am    Post subject: Reply with quote

Compiles, links and run fine. Just remove C_EXTERNAL function definition lines from your example.
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2923
Location: South Pole, Antarctica

PostPosted: Fri Sep 05, 2014 11:57 pm    Post subject: Reply with quote

Thanks Jalih
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 -> 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