With your own trim string in cpp, simply shorten the strings individually!
////////////////////////////////////////////////// //////////////////////
//
// The Trim String OK function removes spaces and tabs!
//
//////////////////////////////////////////////// ////////////////////////
#include
#include
#include
TCHAR * TrimStringOK(TCHAR *txt)
{
TCHAR *buf=txt;
// Bereinige linke Seite bzw. Anfang
while(*buf!=0)
{
if(*buf==' '||*buf=='\t'){ }
else break;
buf++;
}
int len=lstrlen(buf);
TCHAR *last=buf+(len-1);
// Bereinige rechte Seite bzw. Anfang (reverse search)
while(last>buf)
{
if(*last==_T(' ')||*last=='\t'){ *last=_T('\0'); }
else break;
last--;
}
return buf;
}
///////////////////////////////////////////////// /////////////////////
//
// Test by TrimStringOK!
//
//////////////////////////////////////////////// //////////////////////
Querying whether a path is a folder or directory is quite simple in C ++ BOOL IsThePathFolderLPCTSTR pfad { ifpfadreturn FALSE; DWORD dwAttr = GetFileAttributespfad;
The solution is very simple to fix the error code: "was ended with code -1073741701 0xc000007b error message" Mostly there are errors in the * .manifest
The solution is very simple to find out in ListView Get Item Image and List View GetI Subtem Image ////////////////////////////////////////////////// //////////////////////
The solution is very easy to start with the ShellExecuteEx function, search for File in in LPCITEMIDLIST BOOL SearchCmdLPCITEMIDLIST LPCITEMIDLIST item,