Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC CScrollView update problem when scrolling Pin
baumchen19-Jan-10 8:01
baumchen19-Jan-10 8:01 
GeneralRe: MFC CScrollView update problem when scrolling Pin
Nelek19-Jan-10 21:00
protectorNelek19-Jan-10 21:00 
GeneralRe: MFC CScrollView update problem when scrolling Pin
baumchen20-Jan-10 11:12
baumchen20-Jan-10 11:12 
QuestionGetting Function Signatures from a DLL Pin
thatonegirl18-Jan-10 10:31
thatonegirl18-Jan-10 10:31 
AnswerRe: Getting Function Signatures from a DLL Pin
Stuart Dootson18-Jan-10 11:56
professionalStuart Dootson18-Jan-10 11:56 
GeneralRe: Getting Function Signatures from a DLL Pin
thatonegirl19-Jan-10 3:20
thatonegirl19-Jan-10 3:20 
AnswerRe: Getting Function Signatures from a DLL Pin
Garth J Lancaster18-Jan-10 15:31
professionalGarth J Lancaster18-Jan-10 15:31 
QuestionHow to read/process locked files? Pin
ZystemsK18-Jan-10 10:12
ZystemsK18-Jan-10 10:12 
Hi all,

I'm working on a backup project in C++ for Windows XP and Server 2003. I want to be able to backup locked files like the registry and database files. I've looked into Volume Shadow Copy and it seems like the right direction to head, but I can't understand how to implement it in C++.

Here is our current method for backing up a file.

1. FindFirstFile/FindNextFile
2. Send path to file to compression function
3. Compression function simply calls zip.exe with the proper arguments (path to file, path to zip, etc)
3a. zip.exe is Info-ZIP.org's zip program.

My major issue with shadow volumes is that I want to directly access the files and not copy them. Since I'm trying to backup database files, it doesn't make sense to copy them (they are several GB in size sometimes). I'm curious to know if there are other methods outside of VSS to read/process locked files. The majority of enterprise backup solutions can do it without any issue or delay, so I know it's possible, I just don't know how.

I've looked at Hobocopy and it seems to be a valid option, but I don't think it'll work with my current compression method. I tried creating a shadow copy and using the \\?\GLOBALROOT\... path with zip.exe, but it failed, of course.

Thanks.
QuestionRe: How to read/process locked files? Pin
David Crow18-Jan-10 10:29
David Crow18-Jan-10 10:29 
AnswerRe: How to read/process locked files? Pin
ZystemsK18-Jan-10 11:19
ZystemsK18-Jan-10 11:19 
AnswerRe: How to read/process locked files? Pin
Peter Weyzen18-Jan-10 14:09
Peter Weyzen18-Jan-10 14:09 
GeneralRe: How to read/process locked files? Pin
ZystemsK19-Jan-10 3:09
ZystemsK19-Jan-10 3:09 
GeneralRe: How to read/process locked files? Pin
ZystemsK19-Jan-10 4:19
ZystemsK19-Jan-10 4:19 
QuestionReading a file from disk in C Pin
Danzy8318-Jan-10 3:07
Danzy8318-Jan-10 3:07 
AnswerRe: Reading a file from disk in C Pin
Covean18-Jan-10 3:20
Covean18-Jan-10 3:20 
GeneralRe: Reading a file from disk in C Pin
Danzy8318-Jan-10 3:28
Danzy8318-Jan-10 3:28 
GeneralRe: Reading a file from disk in C Pin
Covean18-Jan-10 3:37
Covean18-Jan-10 3:37 
AnswerRe: Reading a file from disk in C Pin
CPallini18-Jan-10 3:23
mveCPallini18-Jan-10 3:23 
GeneralRe: Reading a file from disk in C Pin
Danzy8318-Jan-10 3:36
Danzy8318-Jan-10 3:36 
GeneralRe: Reading a file from disk in C Pin
Electron Shepherd18-Jan-10 3:43
Electron Shepherd18-Jan-10 3:43 
GeneralRe: The _stat function Pin
Danzy8318-Jan-10 3:56
Danzy8318-Jan-10 3:56 
GeneralRe: The _stat function Pin
Electron Shepherd18-Jan-10 3:59
Electron Shepherd18-Jan-10 3:59 
GeneralThanks CPallini and Covean Pin
Danzy8318-Jan-10 3:53
Danzy8318-Jan-10 3:53 
GeneralRe: Thanks CPallini and Covean Pin
CPallini18-Jan-10 6:56
mveCPallini18-Jan-10 6:56 
GeneralRe: Thanks CPallini and Covean Pin
Rozis18-Jan-10 11:32
Rozis18-Jan-10 11:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.