11
SlickEdit® / Re: All my buffers were shown as deleted by SE
« Last post by Dan on June 02, 2023, 01:06:33 pm »Were they on a remote file system and/or a VPN?
This roughly the code SlickEdit uses to get the config path on Windows:
Code: [Select]//Due to customers having problems with the above default location due to OneDrive I/O
// v28 will do this instead:
hrstatus = SHGetSpecialFolderLocation(0,CSIDL_LOCAL_APPDATA,&pidl);
if( hrstatus==NOERROR ) {
wchar_t tempsw[CMMAXFILENAME];
hrstatus=SHGetPathFromIDListW(pidl,tempsw);
// Now append SlickEdit\28.0.0\
// End up with something like this:
// C:\Users\<username>\AppData\Local\SlickEdit\28.0.0\>
It may be easier to use the "-sc <configpath>" option to force SlickEdit to use a configuration directory you specify.
// For v27 and before, code looks like this:
hrstatus = SHGetSpecialFolderLocation(0,CSIDL_PERSONAL,&pidl);
if( hrstatus==NOERROR ) {
wchar_t tempsw[CMMAXFILENAME];
hrstatus=SHGetPathFromIDListW(pidl,tempsw);
// Now append My SlickEdit Config\SlickEdit\27.0.2\
// End up with something like this:
// C:\Users\<username>\Documents\My SlickEdit Config\27.0.2
//Due to customers having problems with the above default location due to OneDrive I/O
// v28 will do this instead:
hrstatus = SHGetSpecialFolderLocation(0,CSIDL_LOCAL_APPDATA,&pidl);
if( hrstatus==NOERROR ) {
wchar_t tempsw[CMMAXFILENAME];
hrstatus=SHGetPathFromIDListW(pidl,tempsw);
// Now append SlickEdit\28.0.0\
// End up with something like this:
// C:\Users\<username>\AppData\Local\SlickEdit\28.0.0\>