Click here to Skip to main content
15,920,217 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Making strong passwords readeable Pin
Kharfax31-Jan-07 0:56
Kharfax31-Jan-07 0:56 
QuestionVista issues Pin
Waldermort30-Jan-07 4:04
Waldermort30-Jan-07 4:04 
AnswerRe: Vista issues Pin
Michael Dunn30-Jan-07 7:27
sitebuilderMichael Dunn30-Jan-07 7:27 
GeneralRe: Vista issues Pin
Waldermort30-Jan-07 16:55
Waldermort30-Jan-07 16:55 
AnswerRe: Vista issues Pin
slipnit30-Jan-07 7:32
slipnit30-Jan-07 7:32 
GeneralRe: Vista issues Pin
James R. Twine30-Jan-07 7:36
James R. Twine30-Jan-07 7:36 
GeneralRe: Vista issues Pin
slipnit30-Jan-07 7:56
slipnit30-Jan-07 7:56 
AnswerRe: Vista issues Pin
James R. Twine30-Jan-07 7:37
James R. Twine30-Jan-07 7:37 
GeneralRe: Vista issues Pin
Waldermort30-Jan-07 16:57
Waldermort30-Jan-07 16:57 
AnswerRe: Vista issues Pin
Ravi Bhavnani30-Jan-07 10:58
professionalRavi Bhavnani30-Jan-07 10:58 
GeneralRe: Vista issues Pin
James R. Twine30-Jan-07 11:25
James R. Twine30-Jan-07 11:25 
GeneralRe: Vista issues Pin
Waldermort30-Jan-07 16:47
Waldermort30-Jan-07 16:47 
GeneralRe: Vista issues Pin
Ravi Bhavnani31-Jan-07 2:54
professionalRavi Bhavnani31-Jan-07 2:54 
AnswerRe: Vista issues Pin
Anilkumar K V30-Jan-07 21:36
Anilkumar K V30-Jan-07 21:36 
Questiondeleting all files from a folder, but one Pin
snoopy_32130-Jan-07 3:15
snoopy_32130-Jan-07 3:15 
AnswerRe: deleting all files from a folder, but one Pin
David Crow30-Jan-07 3:18
David Crow30-Jan-07 3:18 
GeneralRe: deleting all files from a folder, but one Pin
Laxman Auti30-Jan-07 20:25
Laxman Auti30-Jan-07 20:25 
GeneralRe: deleting all files from a folder, but one Pin
snoopy_32130-Jan-07 23:48
snoopy_32130-Jan-07 23:48 
AnswerRe: deleting all files from a folder, but one Pin
Hamid_RT30-Jan-07 7:32
Hamid_RT30-Jan-07 7:32 
QuestionHow to tell if a removable drive is a CD or USB Pin
tieng8630-Jan-07 2:49
tieng8630-Jan-07 2:49 
AnswerRe: How to tell if a removable drive is a CD or USB Pin
Blake Miller30-Jan-07 4:48
Blake Miller30-Jan-07 4:48 
GeneralRe: How to tell if a removable drive is a CD or USB Pin
tieng8630-Jan-07 8:00
tieng8630-Jan-07 8:00 
AnswerRe: How to tell if a removable drive is a CD or USB Pin
James R. Twine30-Jan-07 7:46
James R. Twine30-Jan-07 7:46 
   If you have code that goes into an infinite loop or crashes, you need to first fix that code! Smile | :)

   Have you looked at the SHFormatDrive(...) function?  You can use it to format a drive (after you have determined that you should be formatting it).

   You did not mention if you were getting user permission or not, so I would think this is a bad idea.  You would have to put some extra code in there to make sure you are not formatting a volume that is in use, and that you really have the one you want.  What if the user had multiple storage devices plugged in at once?  Which one would you be formatting...?

   This sounds like a very dangerous thing to do without first having the user confirm the format action.  You could find yourself dealing with a lawsuit over lost data.

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

GeneralRe: How to tell if a removable drive is a CD or USB Pin
tieng8630-Jan-07 8:21
tieng8630-Jan-07 8:21 
QuestionMFC Sockets Pin
Member 253245430-Jan-07 1:19
Member 253245430-Jan-07 1:19 

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.