Hi

I need to create a Progress bar to send one file to the SD card in the
Pocket PC. I need to show the progress related to the size of the file.
There is a method in RAPI called copyFileToDevice() but it blocks the code
until the file is over. I could not find a way to show the bytes transfered
to the device.

Any help here ?




--
Alberto Cardoso

Re: Pogress Bar in RAPI accessing the SD card. by ctacke/>

ctacke/>
Thu Oct 19 10:41:10 CDT 2006

Use a separate thread to transfer the data.

-Chris


"Alberto Cardoso" <AlbertoCardoso@discussions.microsoft.com> wrote in
message news:284E979C-3353-4B64-80DB-796208C42819@microsoft.com...
> Hi
>
> I need to create a Progress bar to send one file to the SD card in the
> Pocket PC. I need to show the progress related to the size of the file.
> There is a method in RAPI called copyFileToDevice() but it blocks the code
> until the file is over. I could not find a way to show the bytes
> transfered
> to the device.
>
> Any help here ?
>
>
>
>
> --
> Alberto Cardoso
>



Re: Pogress Bar in RAPI accessing the SD card. by AlbertoCardoso

AlbertoCardoso
Fri Oct 20 06:08:02 CDT 2006

Thanks for the reply Chris!

But my problem is how am I going fill up the progress bar if I dont know how
many bytes are transfering. The copyToDevice() method encapsulates the
transfer.

--
Alberto Cardoso



"<ctacke/>" wrote:

> Use a separate thread to transfer the data.
>
> -Chris
>
>
> "Alberto Cardoso" <AlbertoCardoso@discussions.microsoft.com> wrote in
> message news:284E979C-3353-4B64-80DB-796208C42819@microsoft.com...
> > Hi
> >
> > I need to create a Progress bar to send one file to the SD card in the
> > Pocket PC. I need to show the progress related to the size of the file.
> > There is a method in RAPI called copyFileToDevice() but it blocks the code
> > until the file is over. I could not find a way to show the bytes
> > transfered
> > to the device.
> >
> > Any help here ?
> >
> >
> >
> >
> > --
> > Alberto Cardoso
> >
>
>
>

Re: Pogress Bar in RAPI accessing the SD card. by ctacke/>

ctacke/>
Fri Oct 20 07:28:40 CDT 2006

Well the copy works in blocks - you'll have to add some sort of eventing to
the copy method.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"Alberto Cardoso" <AlbertoCardoso@discussions.microsoft.com> wrote in
message news:496C6745-8D6E-4B48-A211-DA027AA90375@microsoft.com...
> Thanks for the reply Chris!
>
> But my problem is how am I going fill up the progress bar if I dont know
> how
> many bytes are transfering. The copyToDevice() method encapsulates the
> transfer.
>
> --
> Alberto Cardoso
>
>
>
> "<ctacke/>" wrote:
>
>> Use a separate thread to transfer the data.
>>
>> -Chris
>>
>>
>> "Alberto Cardoso" <AlbertoCardoso@discussions.microsoft.com> wrote in
>> message news:284E979C-3353-4B64-80DB-796208C42819@microsoft.com...
>> > Hi
>> >
>> > I need to create a Progress bar to send one file to the SD card in the
>> > Pocket PC. I need to show the progress related to the size of the file.
>> > There is a method in RAPI called copyFileToDevice() but it blocks the
>> > code
>> > until the file is over. I could not find a way to show the bytes
>> > transfered
>> > to the device.
>> >
>> > Any help here ?
>> >
>> >
>> >
>> >
>> > --
>> > Alberto Cardoso
>> >
>>
>>
>>