View previous topic :: View next topic |
Author |
Message |
Wfwtsn95
Joined: 14 Sep 2020 Posts: 4
|
Posted: Tue Sep 15, 2020 11:51 am Post subject: clearwin_option could not be located in my.exe |
|
|
Hi,
I followed this to add call to clearwin_option
http://forums.silverfrost.com/viewtopic.php?t=4291&highlight=clearwinoption
Code: |
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Tue Sep 15, 2020 5:33 pm Post subject: |
|
|
Have you included the trailing @? |
|
Back to top |
|
|
Wfwtsn95
Joined: 14 Sep 2020 Posts: 4
|
Posted: Tue Sep 15, 2020 11:58 pm Post subject: Re: |
|
|
PaulLaidler wrote: | 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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Wed Sep 16, 2020 7:06 am Post subject: |
|
|
Please check that you have included the @ in the line
Code: | call clearwin_option@("alt_open_save") |
If you have then please post the actual code where it fails. |
|
Back to top |
|
|
|