I was sure the passage to UNICODE make with me, numerous problem

For the master, never problem, just adding a letter, a little thing, etc..
For KCC, even when he search a long time, and try several way, that not works

So since several years i use this splendid API MakeSureDirectoryPathExists_(), simple, all in a line, so the better for me
And this morning i see my code not works

After search i found it's MakeSureDirectoryPathExists_() and see it not works in UNICODE
It replaced by SHCreateDirectoryEx()
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Obviously, this one is not recognize by PB (in other case it's not funny)

So KCC try to play, like a big, with the tools of MASTERS .....import function...and that not works

They are example in VB
Code: Select all
Private Declare Function SHCreateDirectoryEx Lib "Shell32.dll" Alias "SHCreateDirectoryExA" _(ByVal hwnd As Long, ByVal pszPath As String, ByVal lngsec As Long) As Long
SHCreateDirectoryEx 0&, "D:\Kcc\", 0&
Code: Select all
Import "shell32.lib"
SHCreateDirectoryEx(hwndWindow.l, Path.s, pszPath.l)
EndImport
Debug SHCreateDirectoryEx(0, "D:\Kcc\", 0)
Code: Select all
Import "shell32.lib"
SHCreateDirectoryEx(hwndWindow.l, Path.s, *pszPath)
EndImport
Debug SHCreateDirectoryEx(0, "D:\Kcc\", 0)
Code: Select all
Import "shell32.lib"
SHCreateDirectoryExA(hwndWindow.l, Path.s, pszPath.l)
EndImport
Debug SHCreateDirectoryExA(0, "D:\Kcc\", 0)
If someone know how call this API
Have a good day