Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 20 results for
shfileopstruct
- Page 1
Convert String to LPCWSTR - SHFileOperation
Programming
Software Development
11 Years Ago
by Macilath
…reasearch it was suggested that I use SHFileOperation, and
SHFILEOPSTRUCT
. I'm trying to set the struct members …//LPCWSTR source = _T(sourcePath); destPath = dest; sourcePath = source; //SHFile Struct
SHFILEOPSTRUCT
fileStruct = { 0 }; //fileStruct.hwnd = hwnd; fileStruct.wFunc = FO_COPY; fileStruct…
copy psp files using SHFILEOPSTRUCT
Programming
Software Development
12 Years Ago
by Ravi.Srilatha
Hi, Can any please help me ... I am trying to copy .psp files from source to destination location.that was working fine but 1. when i am giving a special "*" character in source path it is showing error, it has to copy all the psp files from source to destination. Ex:"C:\filename*.psp". 2.getting error when path is like …
Re: Winsock problem
Programming
Software Development
14 Years Ago
by AndreRet
… names of files Public Const FOF_WANTMAPPINGHANDLE = &H20 ' Fill in
SHFILEOPSTRUCT
.hNameMappings Public Declare Function SHFileOperation Lib "shell32.dll"…; Alias "SHFileOperationA" (lpFileOp As
SHFILEOPSTRUCT
) As Long Private Declare Function GetWindowTextLength Lib "user32"…
Re: Copy all folder contents to specified location(pls help)
Programming
Software Development
15 Years Ago
by koolsid
… file names Private Const FOF_SIMPLEPROGRESS = &H100 Private Type
SHFILEOPSTRUCT
hWnd As Long wFunc As Long pFrom As String pTo… strSource As String, ByRef strTarget As String) Dim op As
SHFILEOPSTRUCT
With op .wFunc = FO_COPY .pTo = strTarget .pFrom = strSource .fFlags = …
Re: open an unknown file with Visual Basic
Programming
Software Development
14 Years Ago
by AndreRet
… FOF_NOCONFIRMMKDIR As Long = &H200 Type
SHFILEOPSTRUCT
hwnd As Long wFunc As Long pFrom As… Alias "SHFileOperationA" (lpFileOp As
SHFILEOPSTRUCT
) As Long 'Place the following code under…menu, etc... Dim result As Long, fileop As
SHFILEOPSTRUCT
With fileop .hwnd = Me.hwnd .wFunc = …
Re: Database Restore & Delete backup
Programming
Software Development
13 Years Ago
by AndreRet
…&H40 Private Const FOF_NOCONFIRMATION = &H10 Private Type
SHFILEOPSTRUCT
hwnd As Long wFunc As Long pFrom As String pTo…Function DeleteFile(file As String) As Boolean '====================================================== Dim shfo As
SHFILEOPSTRUCT
Dim lresult As Long With shfo .wFunc = FO_DELETE .pFrom…
Re: Copying folder
Programming
Software Development
13 Years Ago
by AndreRet
…Alias "SHFileOperationA" _ (lpFileOp As
SHFILEOPSTRUCT
) As Long Private Type
SHFILEOPSTRUCT
hWnd As Long wFunc As Long pFrom As… _ ByVal sTo As String) As Boolean Dim SHFileOp As
SHFILEOPSTRUCT
On Error GoTo CF_Err CopyFolder = False With SHFileOp .wFunc =…
Re: How to delete permanently files and folder in my hard disk using vb6
Programming
Software Development
12 Years Ago
by Jx_Man
….dll" Alias "SHFileOperationA" (lpFileOp As
SHFILEOPSTRUCT
) As Long Private Type
SHFILEOPSTRUCT
hwnd As Long wFunc As Long pFrom As…(sFile As String) 'set some working variables Dim shf As
SHFILEOPSTRUCT
'terminate the file string with 'a pair of null charss…
Re: Delete a file and go in recycle bin using vb6
Programming
Software Development
12 Years Ago
by deepakbshitole
… Const FOF_WANTMAPPINGHANDLE = &H20 Private Type
SHFILEOPSTRUCT
hwnd As Long wFunc As Long pFrom As…Sub Recycle(ByVal strFileName As String) Dim CFileStruct As
SHFILEOPSTRUCT
With CFileStruct .hwnd = Me.hwnd .fFlags =…
Re: Copy a Folder
Programming
Software Development
15 Years Ago
by Ancient Dragon
…> #include <iostream> using namespace std; int main() {
SHFILEOPSTRUCT
sf; memset(&sf,0,sizeof(sf)); sf.hwnd = 0…
Re: Copy a Folder
Programming
Software Development
15 Years Ago
by pigg
…> #include <iostream> using namespace std; int main() {
SHFILEOPSTRUCT
sf; memset(&sf,0,sizeof(sf)); sf.hwnd = 0…
Re: Copy a Folder
Programming
Software Development
15 Years Ago
by pigg
…> #include <CString> using namespace std; int main() {
SHFILEOPSTRUCT
sf; memset(&sf,0,sizeof(sf)); sf.hwnd = 0…
Re: Copy a Folder
Programming
Software Development
15 Years Ago
by mitrmkar
….microsoft.com/en-us/library/bb759795(VS.85).aspx"]
SHFILEOPSTRUCT
Structure[/URL] documentation.
Re: Copy a Folder
Programming
Software Development
15 Years Ago
by pigg
… the solution: [code] std::string testto = "d:\\testto"
SHFILEOPSTRUCT
sf; memset(&sf,0,sizeof(sf)); sf.hwnd = 0…
Re: Copy a Folder
Programming
Software Development
14 Years Ago
by wavsyntax
…> #include <CString> using namespace std; int main() {
SHFILEOPSTRUCT
sf; memset(&sf,0,sizeof(sf)); sf.hwnd = 0…
Re: Convert String to LPCWSTR - SHFileOperation
Programming
Software Development
11 Years Ago
by Ancient Dragon
Another way to do it is to call [CopyFile](http://msdn.microsoft.com/en-us/library/windows/desktop/aa363851(v=vs.85).aspx)() instead of SHFileOperation(), its a lot easier to use. To answer your question, you have to call a conversion function such as [one of these](https://www.google.com/#hl=en&sclient=psy-ab&q=c%2B%2B+convert+char*+to+…
Re: Convert String to LPCWSTR - SHFileOperation
Programming
Software Development
11 Years Ago
by Macilath
The reason I avoided CopyFile() was that it required the destination directories to exist already, and wouldn't create new ones. Maybe I misunderstood it, but I thought that would not save a new directory if I created a new directory in the source. I was hoping that SHFileOperation() would go through the directories recursively and create them if …
Re: Convert String to LPCWSTR - SHFileOperation
Programming
Software Development
11 Years Ago
by Ancient Dragon
It looks like SHFileOperation() does create the directories >Copy and Move operations can specify destination directories that do not exist. In those cases, the system attempts to create them and normally displays a dialog box to ask the user if they want to create the new directory. To suppress this dialog box and have the directories created …
Re: Convert String to LPCWSTR - SHFileOperation
Programming
Software Development
11 Years Ago
by nullptr
This should work. bool Backup::runBackup(std::string source, std::string dest) { char destPath[MAX_PATH] = {0}; char sourcePath[MAX_PATH] = {0}; // Note: source and destination paths must be double null terminated errno_t error = strcpy_s(destPath, dest.c_str() ); if (0 != error) {…
Re: Convert String to LPCWSTR - SHFileOperation
Programming
Software Development
11 Years Ago
by nullptr
You can also replace the strcpy_s(...) with the string copy member function. char destPath[MAX_PATH] = {0}; char sourcePath[MAX_PATH] = {0}; dest.copy(destPath, dest.length(), 0); source.copy(sourcePath, source.length(), 0);
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC