Silverfrost Forums

Welcome to our forums

clearwin_option could not be located in my.exe

15 Sep 2020 10:51 #26351

Hi,

I followed this to add call to clearwin_option https://forums.silverfrost.com/Forum/Topic/3824&highlight=clearwinoption

WinApp
Program p
!
   INCLUDE <CLEARWIN.INS>

   Character(Len=256) :: ffile ! - selected file -
   Character(Len=256) :: idir  ! - input directory -
!
   External :: get_filtered_file@
!
   call clearwin_option@('alt_open_save') 
   ffile = ' '
   idir = '.'
   Call get_filtered_file@ ('Test', ffile, idir, (/'All'/), (/'*.*'/), 1, 1)
   Print *, 'Test completed'
End Program p

This test code works, but when I try to add the call in my real code, it pops up this error message.

I am under win10@64. The program is compiled in 32bit. FTN95 ver 8.61

Cheers,

John

15 Sep 2020 4:33 #26353

Have you included the trailing @?

15 Sep 2020 10:58 #26355

Quoted from PaulLaidler Have you included the trailing @?

Yes.

The error window caption is: my.exe - entry point not found. The error is: The procedure entry point __clearwin_option could not be located in the dynamic link library my.exe.

Just wondering why it thinks my.exe is dynamic link library, not a stand alone program

16 Sep 2020 6:06 #26357

Please check that you have included the @ in the line

call clearwin_option@('alt_open_save')

If you have then please post the actual code where it fails.

Please login to reply.