Thread View: borland.public.cppbuilder.nativeapi
4 messages
4 total messages
Started by Babak
Sat, 27 May 2006 11:33
Format FAT a Memory Cart
Author: Babak
Date: Sat, 27 May 2006 11:33
Date: Sat, 27 May 2006 11:33
3 lines
862 bytes
862 bytes
Hi How can I format a drive FAT? (Not a FAT32) Is Memory Cart is differetnt with other kind of drives?
Re: Format FAT a Memory Cart
Author: Babak
Date: Sun, 28 May 2006 07:47
Date: Sun, 28 May 2006 07:47
1 lines
898 bytes
898 bytes
Is there any reply plz?
Re: Format FAT a Memory Cart
Author: Michel Leunen
Date: Sun, 28 May 2006 10:15
Date: Sun, 28 May 2006 10:15
17 lines
1380 bytes
1380 bytes
Babak wrote: > How can I format a drive FAT? (Not a FAT32) > Is Memory Cart is differetnt with other kind of drives? Did you try SHFormatDrive() from the windows shell API? Basically, it opens the format dialog box allowing you to select the filesystem. Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Re: Format FAT a Memory Cart
Author: Babak
Date: Mon, 05 Jun 2006 18:42
Date: Mon, 05 Jun 2006 18:42
42 lines
2211 bytes
2211 bytes
yes thanks a milion :-)
//=========
extern "C" DWORD WINAPI SHFormatDrive(HWND, UINT, UINT, UINT);
void __fastcall TForm1::Button1Click(TObject *Sender)
{
// ShowMessage(DriveComboBox1->Drive-'a');
long FmtRes;
try{
FmtRes=
SHFormatDrive(Handle,DriveComboBox1->Drive-'a',SHFMT_ID_DEFAULT,SHFMT_OPT_QU
ICKFORMAT);
switch(FmtRes){
case SHFMT_ERROR : ShowMessage("Format Problem...");break;
case SHFMT_CANCEL : ShowMessage("Canceled");break;
case SHFMT_NOFORMAT : ShowMessage("Not Done !!!");break;
default:ShowMessage("Done !!!!");
}//sw
}catch(...){};
}
"Michel Leunen" <nospam@noreply.please> wrote in message
news:4479778c$1@newsgroups.borland.com...
> Babak wrote:
>
> > How can I format a drive FAT? (Not a FAT32)
> > Is Memory Cart is differetnt with other kind of drives?
>
> Did you try SHFormatDrive() from the windows shell API?
> Basically, it opens the format dialog box allowing you to select the
> filesystem.
>
> Michel
> --
> ----------------------------------------
> Michel Leunen
> mailto: see my homepage.
> C++Builder, BCC5.5.1 Web site:
> http://www.leunen.com/
> ----------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads