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 

Browse_for_folder1@ is failing to create a user-named folder

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



Joined: 13 Oct 2014
Posts: 500
Location: Morrison, CO, USA

PostPosted: Fri Jan 18, 2019 5:54 pm    Post subject: Browse_for_folder1@ is failing to create a user-named folder Reply with quote

The following code segment asks for the user to choose or create a folder. Choosing an existing folder works fine, but creating a folder with a new non-default name does the following when you click OK :

The folder is created with the name you typed in
The program quits with no error/crash indication

If you just want a new folder created (default name), it works fine.

I'm not sure when this stopped working properly.

Running V8.40.0.

Code:
   winapp
   PROGRAM MAIN
    use mswin
   character*260:: returned_path=' '
    integer:: uint=z'41'
    integer(7):: window_handle=0
    if(browse_for_folder1@(window_handle,'Caption',returned_path,uint)) then
      print *,'Returned:',trim(returned_path)
    else
      print *,'Cancelled'
    endif
    end
Back to top
View user's profile Send private message Visit poster's website
wahorger



Joined: 13 Oct 2014
Posts: 500
Location: Morrison, CO, USA

PostPosted: Fri Jan 18, 2019 6:05 pm    Post subject: Reply with quote

It also doesn't work in programs compiled in June of last year with 8.30.0.
Back to top
View user's profile Send private message Visit poster's website
wahorger



Joined: 13 Oct 2014
Posts: 500
Location: Morrison, CO, USA

PostPosted: Fri Jan 18, 2019 7:07 pm    Post subject: Reply with quote

This was extracted from the MSDN site. Is it applicable?

Note If COM is initialized using CoInitializeEx with the COINIT_MULTITHREADED flag, SHBrowseForFolder fails if the calling application uses the BIF_USENEWUI or BIF_NEWDIALOGSTYLE flag in the BROWSEINFO structure.

https://docs.microsoft.com/en-us/windows/desktop/api/shlobj_core/nf-shlobj_core-shbrowseforfoldera
Back to top
View user's profile Send private message Visit poster's website
wahorger



Joined: 13 Oct 2014
Posts: 500
Location: Morrison, CO, USA

PostPosted: Sat Jan 19, 2019 12:18 am    Post subject: Reply with quote

Looking back at some of my posts, it occurred to me that I have had something like this problem before.

And, looks like I still have. It is not a problem with FTN95 or the libraries.

Running the software on a different platform. It would appear that it works just fine.

So it is unfortunate, but my development system has some kind of problem.

If anyone has any insight into what I should look at/fix, I'm open for suggestions. I tried a LOT of different things (a couple of years ago), but nothing seemed to work.

Thoughts?
Back to top
View user's profile Send private message Visit poster's website
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