With my PB 12.5 app, I had coded a call to the Windows API GetOpenFileName function that worked perfectly. When I compile that same app in PB 2017 64Bit, it doesn't work because of a structure size error. Can you point me to some code (or someone) that might help me figure out what changes I need to make to get it to work?
- Timothy Beck
- PowerBuilder
- Thursday, 5 April 2018 21:20 PM UTC
- Page :
- 1
There are no replies made for this question yet.
However, you are not allowed to reply to this question.
However, you are not allowed to reply to this question.
Thanks! Unfortunately, the example calls SHBrowseForFolder, not GetOpenFileName or GetSaveFileName. Do you have examples of those?
I do see the changes you made to the structure. How did you decide when to use Long and when to use LongPtr?
Tim
You need to use the new pointer data type for the 64bit realm. I found this requirement while reading the 64bit API documentation.
PB 12.x extended the built-in GetFileOpenName ( ) method addiing a new aFlag argument. This argument controls the Look & Feel and behaviour of the O/S dialog. Have you tried this aspect?
Regards ... Chris
Thanks again ... I did try setting the aFlag argument to various things without getting the desired results.
Tim