Click here to Skip to main content
15,897,519 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: virtual member? Pin
Matthew Faithfull20-Dec-07 3:12
Matthew Faithfull20-Dec-07 3:12 
GeneralConvert string to long Pin
SWDevil20-Dec-07 2:41
SWDevil20-Dec-07 2:41 
GeneralRe: Convert string to long Pin
CPallini20-Dec-07 2:53
mveCPallini20-Dec-07 2:53 
GeneralRe: Convert string to long Pin
Matthew Faithfull20-Dec-07 3:03
Matthew Faithfull20-Dec-07 3:03 
QuestionDetection of databases Pin
tom groezer20-Dec-07 2:14
tom groezer20-Dec-07 2:14 
GeneralRe: Detection of databases Pin
David Crow20-Dec-07 2:28
David Crow20-Dec-07 2:28 
Questionhow to format a pen drive? Pin
Shayantani20-Dec-07 1:27
Shayantani20-Dec-07 1:27 
AnswerRe: how to format a pen drive? [modified] Pin
kakan20-Dec-07 2:08
professionalkakan20-Dec-07 2:08 
One way, generally, is to use the function FormatEx() from fmifs.dll.
I have been using it for years, but yesterday, I tried to use it for formatting an USB stick/pendrive.
The format itself seemed to work very well, but I got "delayed write error" when I tried to write big files to the pen drive after formatting it (with FormatEx).
I ended up with using Windows normal Format, and after that, the pen drive seemed to work as before.
I suspect the cause of the problem is in the second parameter to the FormatEx() function.
It seems as there are just two known values (outside MS) out of 24! (The known values are FMIFS_FLOPPY and FMIFS_HARDDISK). Another value might do the trick.

So your DeviceIOControl() call might be a way to do it. It seems possible that the formatting code is included with the driver. Might be worth to investigate further.
You say "I cannot proceed any further". Why? What's the problem?


<edit>I'm going on Xmas leave now. Back on the 7:th of January (GMT+1)
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

modified on Thursday, December 20, 2007 11:18:08 AM

GeneralReally Not An Easy Ques. !!!!!!!! Pin
AhmedOsamaMoh20-Dec-07 1:13
AhmedOsamaMoh20-Dec-07 1:13 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
CPallini20-Dec-07 1:58
mveCPallini20-Dec-07 1:58 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
AhmedOsamaMoh20-Dec-07 2:28
AhmedOsamaMoh20-Dec-07 2:28 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
David Crow20-Dec-07 2:35
David Crow20-Dec-07 2:35 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
CPallini20-Dec-07 2:38
mveCPallini20-Dec-07 2:38 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
Matthew Faithfull20-Dec-07 2:46
Matthew Faithfull20-Dec-07 2:46 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
Member 75496020-Dec-07 4:27
Member 75496020-Dec-07 4:27 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
AhmedOsamaMoh20-Dec-07 5:44
AhmedOsamaMoh20-Dec-07 5:44 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
David Crow20-Dec-07 5:51
David Crow20-Dec-07 5:51 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
Member 75496020-Dec-07 5:58
Member 75496020-Dec-07 5:58 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
David Crow20-Dec-07 6:12
David Crow20-Dec-07 6:12 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
AhmedOsamaMoh20-Dec-07 6:12
AhmedOsamaMoh20-Dec-07 6:12 
GeneralRe: Really Not An Easy Ques. !!!!!!!! Pin
Member 75496020-Dec-07 7:28
Member 75496020-Dec-07 7:28 
QuestionNow to find if string X is the name of a directory/folder rather than the name of a file? Pin
Anthony Appleyard20-Dec-07 0:48
Anthony Appleyard20-Dec-07 0:48 
AnswerRe: Now to find if string X is the name of a directory/folder rather than the name of a file? Pin
CPallini20-Dec-07 0:58
mveCPallini20-Dec-07 0:58 
GeneralRe: Now to find if string X is the name of a directory/folder rather than the name of a file? Pin
Anthony Appleyard20-Dec-07 1:14
Anthony Appleyard20-Dec-07 1:14 
GeneralRe: Now to find if string X is the name of a directory/folder rather than the name of a file? Pin
JudyL_MD20-Dec-07 1:45
JudyL_MD20-Dec-07 1: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.