Click here to Skip to main content
15,906,567 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: which way is more efficient to check bit value Pin
Chris Losinger4-Nov-07 5:47
professionalChris Losinger4-Nov-07 5:47 
GeneralRe: which way is more efficient to check bit value Pin
George_George4-Nov-07 18:26
George_George4-Nov-07 18:26 
GeneralRe: which way is more efficient to check bit value Pin
Chris Losinger5-Nov-07 0:58
professionalChris Losinger5-Nov-07 0:58 
GeneralRe: which way is more efficient to check bit value Pin
George_George5-Nov-07 1:13
George_George5-Nov-07 1:13 
GeneralRe: which way is more efficient to check bit value Pin
David Crow5-Nov-07 3:43
David Crow5-Nov-07 3:43 
GeneralRe: which way is more efficient to check bit value Pin
George_George5-Nov-07 18:41
George_George5-Nov-07 18:41 
QuestionCreate a file, containing folder contents Pin
TheRamon3-Nov-07 23:38
TheRamon3-Nov-07 23:38 
AnswerRe: Create a file, containing folder contents Pin
Nelek4-Nov-07 21:51
protectorNelek4-Nov-07 21:51 
I imagine you are trying a type of "backup".

Take a look into the articles, search for Compression.

I can imagine to do it like:

Supposing a list of structs, each of them with a CString for path/name, other parameters you want to save, and a BYTE* pBuffer with variable length

1) Going to Folder and get the first file complete name (or path)
2) Save path and name into a CString
3) Open the file in binary, get the length, allocate a buffer with that size, and read the contents into a buffer
4) Save it in one struct
5) Get to next file in folder
6) ....

At the end... you can use the CArchive to serialize the data into a file with the extension you want to use, compressing or not the datas.

Afterwards you would be able to read your file, extract the first parameter (the string with name/path) and list them in your app, if you want to extract one, you select the complete object, and create a new file with the binary contents you previously saved.


Hope it helps

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

Questionlocal system account Pin
ginjikun3-Nov-07 22:59
ginjikun3-Nov-07 22:59 
QuestionNetwork Monitor Pin
AhmedOsamaMoh3-Nov-07 21:46
AhmedOsamaMoh3-Nov-07 21:46 
QuestionExport string from Dll Pin
Max++3-Nov-07 21:02
Max++3-Nov-07 21:02 
QuestionTracking a mouse movement inside a dialog without Tab controls Pin
Larry Mills Sr3-Nov-07 15:39
Larry Mills Sr3-Nov-07 15:39 
AnswerRe: Tracking a mouse movement inside a dialog without Tab controls Pin
Nelek4-Nov-07 21:41
protectorNelek4-Nov-07 21:41 
GeneralRe: Tracking a mouse movement inside a dialog without Tab controls Pin
Larry Mills Sr5-Nov-07 5:57
Larry Mills Sr5-Nov-07 5:57 
GeneralRe: Tracking a mouse movement inside a dialog without Tab controls [modified] Pin
Nelek5-Nov-07 20:30
protectorNelek5-Nov-07 20:30 
AnswerRe: Tracking a mouse movement inside a dialog without Tab controls Pin
Mark Salsbery5-Nov-07 5:54
Mark Salsbery5-Nov-07 5:54 
GeneralRe: Tracking a mouse movement inside a dialog without Tab controls Pin
Larry Mills Sr5-Nov-07 6:03
Larry Mills Sr5-Nov-07 6:03 
GeneralRe: Tracking a mouse movement inside a dialog without Tab controls Pin
Mark Salsbery5-Nov-07 6:34
Mark Salsbery5-Nov-07 6:34 
GeneralRe: Tracking a mouse movement inside a dialog without Tab controls [modified] Pin
Larry Mills Sr5-Nov-07 9:10
Larry Mills Sr5-Nov-07 9:10 
GeneralRe: Tracking a mouse movement inside a dialog without Tab controls Pin
Mark Salsbery5-Nov-07 10:48
Mark Salsbery5-Nov-07 10:48 
GeneralRe: Tracking a mouse movement inside a dialog without Tab controls Pin
Larry Mills Sr5-Nov-07 11:25
Larry Mills Sr5-Nov-07 11:25 
GeneralRe: Tracking a mouse movement inside a dialog without Tab controls Pin
Mark Salsbery5-Nov-07 11:45
Mark Salsbery5-Nov-07 11:45 
GeneralRe: Tracking a mouse movement inside a dialog without Tab controls Pin
Larry Mills Sr6-Nov-07 2:59
Larry Mills Sr6-Nov-07 2:59 
GeneralRe: Tracking a mouse movement inside a dialog without Tab controls Pin
Mark Salsbery6-Nov-07 4:43
Mark Salsbery6-Nov-07 4:43 
GeneralRe: Tracking a mouse movement inside a dialog without Tab controls Pin
Larry Mills Sr6-Nov-07 5:45
Larry Mills Sr6-Nov-07 5:45 

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.