![]() ![]() ![]() FUNCTION ulong GetCurrentDirectoryA(ulong BufferLen, ref string currentdir) LIBRARY "Kernel32.dll" Please advise ASAP, this is very important in the application I am working on, since it gets and save files from different known directories.įollowing the all script with messagebox indicating that the directory was changed: Please tell me if this is working for you, in what PB version? I checked it in win XP and PB7.0.3 also and it's not working. The help does not mention any default for GetFileOpenName) (The help says that GetFileSaveName has default file name but nothing on directory. Remark: if I change the order of the functions, the GetFileSaveName get the default directory and not the one I chosen for GetFileOpenName before - this means that the direcory changed and I missed something in the function. To verify that the directory has changed, I checked it using GetCurrentDirectoryA and the path is OK but the GetFileOpenName default directory is still the same as I chosen with GetFileSaveName before. I do declare the external function and use the ref as follow.
0 Comments
Leave a Reply. |