Thank you very much for explaining all this!! I really don’t know what I
would do without the helpful people here!
I didn’t know there was something like IncludeTrailingPathDelimiter, wow that
sure is useful! I have a LOT of places I need to make sure I stick in the
trailing \ and this
El 23/05/19 a las 13:52, James Richters escribió:
I have put together a program that demonstrates the issue I am
having. I have re-structured it a bit to try to make it more clear
where the problem is.
While putting this together, I was able to get it to run fine with no
problems if I did
Oh that makes sense… so it would know when there wasn’t another string. I’ll
put another #0 that seems to be the correct way.
James
From: fpc-pascal On Behalf Of
Alexander Grotewohl
Sent: Thursday, May 23, 2019 12:22 PM
To: FPC-Pascal users discussions
Subject: Re: [fpc-pascal] Getting
The whole structure is documented herehttps://docs.microsoft.com/en-us/windows/desktop/api/commdlg/ns-commdlg-tagofnaI just read through it and noticed that. My guess is anything that takes multiple strings that way.--Alexander Grotewohlhttp://dcclost.comOn May 23, 2019 12:09 PM, James Richters
I’m not clear about when they need one #0 or two. I thought it was just
.lpstrFile to make it clear there weren’t more file names in it.. so one #0
between each name and double #0 at the end.. maybe they all need double #0 at
the end?
James
From: fpc-pascal On Behalf Of
Alexander
I did notice lpstrFilter is terminated by one #0 instead of two. Other than that not at a pc to test.--Alexander Grotewohlhttp://dcclost.comOn May 23, 2019 7:52 AM, James Richters wrote:I have put together a program that demonstrates the issue I am having. I have re-structured it a bit to try to
I have put together a program that demonstrates the issue I am having. I have
re-structured it a bit to try to make it more clear where the problem is.
While putting this together, I was able to get it to run fine with no problems
if I did not try to put GetOpenFileNameA back to the directory