|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
rudnei
Joined: 29 Dec 2011 Posts: 36
|
Posted: Wed Oct 17, 2012 7:03 pm Post subject: Garbage returned by clearwin_string@('CURRENT_MENU_ITEM') |
|
|
Hi,
I have been trying (unsuccessfully) to use clearwin_string@('CURRENT_MENU_ITEM') but it returns garbage when I try to find out which menu item has been selected.
The code that creates the entries is:
character(len=129) :: legenda
type (bcdesc), pointer :: q
n_itens_cf_espec = 0
q => bclist
do while (associated(q))
n_itens_cf_espec = n_itens_cf_espec+1
write(legenda,'(I3," : fronteira ",A1,", variavel ",A1)')n_itens_cf_espec,q%boundary,q%boundary_variable
call add_menu_item@(handle_menu_cf_espec,legenda,1,0,altera_cf_espec)
where handle_menu_cf_spec is an integer declared on a module which is used by appropriate subprograms.
The code that checks for the menu item is just
character(len=129) :: item
item = ' '
item = clearwin_string@('CURRENT_MENU_ITEM')
I am using FTN95 6.30 under Windows 7... any ideas? |
|
Back to top |
|
|
rudnei
Joined: 29 Dec 2011 Posts: 36
|
Posted: Wed Oct 17, 2012 8:22 pm Post subject: |
|
|
Did some more testing, and found out that if I take the subroutine/functions where those two pieces of code are out of the MODULE, and treat them as external subprograms, then every thing works as expected!!!
Surely some sort of bug in the compiler...
Cheers,
Rudnei |
|
Back to top |
|
|
rudnei
Joined: 29 Dec 2011 Posts: 36
|
Posted: Wed Oct 17, 2012 8:32 pm Post subject: |
|
|
Ah, salflibc.dll version is 14.5.14.22 |
|
Back to top |
|
|
|
|
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
|