Similar to your previous question at I get always an error "exception thrown: write access violation. Lpsh was nullptr."
]. But in this case you create a pointer but you do not initialise it to point to anything. If you do not understand pointers and references then go back to your C reference for guidance.
For an example of using the
interface see Getting Information About the Contents of a Folder - Win32 apps | Microsoft Learn
Also the following is incorrect in the call to
You cannot use a cast to convert an
. You need to generate the
characters at compile time by using the
prefix to the string, thus: