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 

Unknown symbols in GUI app link
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Tue Apr 18, 2017 10:13 am    Post subject: Reply with quote

Beat me to it, Simon.

Clearwin.enh is in the installation 'Docs' folder: the online version may be the latest one, and if you don't have the latest compiler release, then there may be a point of two of difference.

Eddie
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Fri Apr 21, 2017 1:27 am    Post subject: Reply with quote

no I'm pretty sure that's not what's referred to .... the referneìce is here:-
http://silverfrost.com/ftn95-help/clearwinp/dbosfn/introduction.aspx

Clearwin+ User's Supplement

It's also in several other places
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Fri Apr 21, 2017 9:34 am    Post subject: Reply with quote

John,

You are reading a bit of documentary archaeology! The Supplement is the Clearwin+ Fortran Edition manual. The latter evolved through several versions from the former. Simon's suggestion of looking in the .ENH file was for a source of additional info.

Eddie
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Tue Apr 25, 2017 1:50 am    Post subject: Reply with quote

Update of the documentation from 'Clearwin+ Users Supplement' to 'Clearwin+ Fortran Edition manual.' everywhere in the on-line (and maybe other versions) manual(s) should be a piece of cake for Paul then. Smile
Back to top
View user's profile Send private message
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 279

PostPosted: Tue Apr 25, 2017 11:40 am    Post subject: Reply with quote

Hello,

one more remark concerning the symbol

DRAW_TEXT@

for which the numbers of parameters changed from 4 to 5 (compiler WARNING - SUBROUTINE DRAW_TEXT@ has been called with too few arguments).

I do not know the interface for the "new" routine DRAW_TEXT@, however I have learnt that I could use DRAW_CHARACTERS@ instead from one of the pdf files mentioned above.

Maybe it is worthwhile knowing the interface of the "new" DRAW_TEXT@ , too.


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


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

PostPosted: Tue Apr 25, 2017 3:50 pm    Post subject: Reply with quote

Dietmar

I think that there are two things that need fixing here.

1) dbos.ins needs changing to

Code:
      C_EXTERNAL DRAW_TEXT@ "__win_draw_text"(INSTRING,REF,REF,REF)


2) __win_draw_text is not exported correctly from clearwin64.dll.

It should have four arguments. The recommended change is to use DRAW_CHARACHERS@ instead.

You could change dbos.ins but I think that DRAW_TEXT@ will still fail because of (2).
Back to top
View user's profile Send private message AIM Address
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Tue Apr 25, 2017 7:35 pm    Post subject: Reply with quote

DRAW_CHARACTERS@ Smile
... unless it's for a new french syntax version of ftn95 that's 'dear' to the heart or 'expensive' ! lol Wink
Back to top
View user's profile Send private message
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 279

PostPosted: Thu Apr 27, 2017 11:18 am    Post subject: Reply with quote

Yes,

I have substituted DRAW_TEXT@ by DRAW_CHARACTERS@ in my GUI app code and this worked fine Smile

For those who are interested:
in a remark which I made previously in this post I wondered that a small example containing symbol GET_WKEY1@ could be compiled/linked using ftn95/slink64, our big GUI example, however, left symbol GET_WKEY1@ unresolved.
Although meanwhile this problem is solved, I found that you use character " in C_EXTERNAL definitions of file dbos.ins (ftn95 Version 8.10). When I looked at file clearwin.ins of ftn95 Version 7.10 I saw that C_EXTERNAL definitions of file clearwin.ins used character ' instead. What was the reason for this?

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


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

PostPosted: Thu Apr 27, 2017 12:41 pm    Post subject: Reply with quote

There is no reason for this. You can use either single or double quotes.
Perhaps clearwin.ins was written when FTN77 was still in use.
dbos.ins was written within the last few months and double quotes was just a random choice. Hopefully, if there are any FTN77 users still around then they won't be porting to 64 bits.
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Thu Apr 27, 2017 3:19 pm    Post subject: Reply with quote

In real life, double quotes allow you to avoid confusion when using the apostrophe for the Saxon Genitive or word contractions without ambiguity.

In programming, being able to use single or double quotes enables use of the other in character strings , but degrees, minutes and seconds are still difficult, as in:

Code:
"°  '"//'  "'
(similar for feet and inches)

Still not simple, especially when reading it years after writing the code.

Using both types of quotes is one of the things a committed Fortran-77 user is most likely to pick up and adopt, along with inline comments.
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Thu May 04, 2017 10:48 pm    Post subject: Reply with quote

a very astute angle on the subject from a saxon (as would be expected !) Wink

how would a 'double-singlequote' be formatted ?
"''"
or
"'","'"
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Fri May 05, 2017 9:43 am    Post subject: Reply with quote

It depends if it is a character constant or in a format statement.

"'","'" will only work in a format statement, and would have to be "'"//"'" in a character - this would work in a format statement too.

I think that "''" would work anywhere, as it is the first character that must be matched to the end of the string.

The apostrophe is also a key part of the Saxon Genitive.

Can I have this month's award for pedantry please?

Eddie
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1884

PostPosted: Fri May 05, 2017 1:27 pm    Post subject: Re: Reply with quote

LitusSaxonicum wrote:

The apostrophe is also a key part of the Saxon Genitive.

Can I have this month's award for pedantry please?
Eddie

A fitting reward would be a plaque, engraved with Latin text that is unblemished by punctuation, a la https://i.stack.imgur.com/lMmJi.jpg .
Back to top
View user's profile Send private message
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 279

PostPosted: Tue Jun 12, 2018 4:55 pm    Post subject: Reply with quote

There is another unresolved symbol which I found when linking a 64 bit GUI application, namely

Code:

DELETE_POLYGON_DEFINITION@


I wonder how to get rid of this symbol. The code sequence to create/delete the polygon is
Code:

        CALL CREATE_POLYGON@ (...)
         CALL FILL_POLYGON@(...)
          CALL POLYLINE@(...)
                  ........
         CALL DELETE_POLYGON_DEFINITION@(...)

All 4 subroutines are listed in the ClearWin+ documentation Appendix A, Functions ported from DBOS, Graphics, but only the last is marked as undefined by slink64. I know there are alternate routines, however, I wonder, how to set parameter 4 of DRAW_FILLED_POLYGON@ which is the alternate routine to DELETE_POLYGON_DEFINITION@ (which specifies the fill color using the current color mode).

Thanks for any help.

Regards,
Dietmar
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Tue Jun 12, 2018 11:15 pm    Post subject: Reply with quote

Dietmar, the 4th parameter for DRAW_FILLED_POLYGON@ is an integer created with a call to RGB@. I only use Win32, so it's an INTEGER*4. You call RGB@ with 3 parameters: the Red, Green and Blue components, each described with an integer in the range 0...255. RGB mode, with 24-bit colour is the default in Clearwin these days, no longer the 16 colour VGA mode.

You can specify 'ICOL' as in the documentation using say:

ICOL = RGB@ (0, 0, 0) (for black)

or just put it in the subroutine call, as in:

CALL DRAW_FILLED_POLYGON@ (IX, IY, N, RGB@(127, 127, 127) ) (grey)

You really need to update your codes to use the 'post-DBOS' graphics to future proof them.

Eddie
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
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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