1

Topic: PathFileExistsW () and gaps in ways

Greetings! I do not understand,  %) is QString p = "c: \\Users \\nixman \\Desktop \\the New folder \\p.exe" I convert it in wchar_t pp [1024]; p.toWCharArray (pp); also I transfer in:: PathFileExistsW (pp) and as result - false and GetLastError () == 2 tried to replace gaps on ' \\' - without changes. How to be?

2

Re: PathFileExistsW () and gaps in ways

Hello, niXman, you wrote: X> greetings! X> I do not understand,  %) X> is QString p = "c: \\Users \\nixman \\Desktop \\the New folder \\p.exe" X> I convert it in wchar_t pp [1024]; p.toWCharArray (pp); also I transfer in:: PathFileExistsW (pp) and as result - false and GetLastError () == 2 X> tried to replace gaps on ' \\' - without changes. X> how to be? A way to quote or PathQuoteSpaces

3

Re: PathFileExistsW () and gaps in ways

Hello, rumit7, you wrote: R> a way to quote or PathQuoteSpaces Unless with WinAPI it is required to quote ways? Till now at me with them problems did not arise. I would assume more likely that matter is not in gaps, and in Russian characters which not in that coding walked smack.

4

Re: PathFileExistsW () and gaps in ways

We think: 2 is means file not found. There would be problems with a way as a whole - would be 3. , and that if.... It would be necessary to glance in the documentation. We find there: This function returns the actual length of the string in array. Note: This function does not append a null character to the array.