Sir,

I need your help, i got ur email id from pocketpcdn forums.

Sir i got an application which needs some files while running , can i use
storage card (SD) as a medium to rum the exe on my ppc. i ahve provided all
my files inthe storage card.

what will be the path tot the files i should give if i need to run the
program from storage card.

Regards

Naveen

Re: Query :- how to run a application from storage card by ctacke/>

ctacke/>
Sat Oct 29 08:20:27 CDT 2005

Depends on the language of the device, how many card slots you have, when
the card was installed (sequence wise) and the whim of the OEM. It's
*likely* to be 'Storage Card' on an English device, but you should always
have the running app check the directory it's running from to be sure.

-Chris

"Naveen koul" <Naveenkoul@discussions.microsoft.com> wrote in message
news:A89183B1-DB09-4DE5-B6B9-347FC6F304BF@microsoft.com...
> Sir,
>
> I need your help, i got ur email id from pocketpcdn forums.
>
> Sir i got an application which needs some files while running , can i use
> storage card (SD) as a medium to rum the exe on my ppc. i ahve provided
> all
> my files inthe storage card.
>
> what will be the path tot the files i should give if i need to run the
> program from storage card.
>
> Regards
>
> Naveen



Re: Query :- how to run a application from storage card by Naveenkoul

Naveenkoul
Sat Oct 29 09:06:02 CDT 2005


Yes it is coming storage card on my device also.
so wht shoulf be the path
"<ctacke/>" wrote:

> Depends on the language of the device, how many card slots you have, when
> the card was installed (sequence wise) and the whim of the OEM. It's
> *likely* to be 'Storage Card' on an English device, but you should always
> have the running app check the directory it's running from to be sure.
>
> -Chris
>
> "Naveen koul" <Naveenkoul@discussions.microsoft.com> wrote in message
> news:A89183B1-DB09-4DE5-B6B9-347FC6F304BF@microsoft.com...
> > Sir,
> >
> > I need your help, i got ur email id from pocketpcdn forums.
> >
> > Sir i got an application which needs some files while running , can i use
> > storage card (SD) as a medium to rum the exe on my ppc. i ahve provided
> > all
> > my files inthe storage card.
> >
> > what will be the path tot the files i should give if i need to run the
> > program from storage card.
> >
> > Regards
> >
> > Naveen
>
>
>

Re: Query :- how to run a application from storage card by ctacke/>

ctacke/>
Sat Oct 29 10:17:35 CDT 2005

As you just said, \Storage Card. Again, that can change, so your app should
actually determine it at run time

-Chris

"Naveen koul" <Naveenkoul@discussions.microsoft.com> wrote in message
news:8D5D68DF-F7B5-4F88-B0F6-EB5F454EC991@microsoft.com...
>
> Yes it is coming storage card on my device also.
> so wht shoulf be the path
> "<ctacke/>" wrote:
>
>> Depends on the language of the device, how many card slots you have, when
>> the card was installed (sequence wise) and the whim of the OEM. It's
>> *likely* to be 'Storage Card' on an English device, but you should always
>> have the running app check the directory it's running from to be sure.
>>
>> -Chris
>>
>> "Naveen koul" <Naveenkoul@discussions.microsoft.com> wrote in message
>> news:A89183B1-DB09-4DE5-B6B9-347FC6F304BF@microsoft.com...
>> > Sir,
>> >
>> > I need your help, i got ur email id from pocketpcdn forums.
>> >
>> > Sir i got an application which needs some files while running , can i
>> > use
>> > storage card (SD) as a medium to rum the exe on my ppc. i ahve provided
>> > all
>> > my files inthe storage card.
>> >
>> > what will be the path tot the files i should give if i need to run the
>> > program from storage card.
>> >
>> > Regards
>> >
>> > Naveen
>>
>>
>>



Re: Query :- how to run a application from storage card by r_z_aret

r_z_aret
Tue Nov 01 13:03:18 CST 2005

On Sat, 29 Oct 2005 04:12:05 -0700, "Naveen koul"
<Naveenkoul@discussions.microsoft.com> wrote:

>Sir,
>
>I need your help, i got ur email id from pocketpcdn forums.
>
>Sir i got an application which needs some files while running , can i use
>storage card (SD) as a medium to rum the exe on my ppc. i ahve provided all
>my files inthe storage card.
>
>what will be the path tot the files i should give if i need to run the
>program from storage card.

If the executable is on the same storage card as the files, then you
can use GetModuleFileName to get the full path of the executable, and
parse that to get paths for the files.

If the executable is in main storage, but the files are on a card, you
will need to find the card. The main pain is that the name of the root
can vary. For English operating system, the base name can be "Storage
Card", "CF Card" or "SD Card". For other languages, the names will
probably be different. If a card is removed and replaced, the base
name may well be modified by a numbers, as in "Storage Card 1",
"Storage Card 2". So you will need a way to handle all these names
_and_ make sure the card you find is really the card you want. You can
use FindFirstFlashCard and relatives for at least some platforms;
probably all you care about, but definitely not HPC.

>
>Regards
>
>Naveen

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

Re: Query :- how to run a application from storage card by Naveenkoul

Naveenkoul
Fri Nov 04 00:15:02 CST 2005


Hello,

there is one more thing i want to get cleared, that is , when my application
which is in storage card starts executing , and it will start reading files
and it allocates certain amont of memory to object that are being
created.Will it take the storage card memory to get its objects allocated or
it will allocate the pocket pc 's internal memory.

Regards

Naveen

"r_z_aret@pen_fact.com" wrote:

> On Sat, 29 Oct 2005 04:12:05 -0700, "Naveen koul"
> <Naveenkoul@discussions.microsoft.com> wrote:
>
> >Sir,
> >
> >I need your help, i got ur email id from pocketpcdn forums.
> >
> >Sir i got an application which needs some files while running , can i use
> >storage card (SD) as a medium to rum the exe on my ppc. i ahve provided all
> >my files inthe storage card.
> >
> >what will be the path tot the files i should give if i need to run the
> >program from storage card.
>
> If the executable is on the same storage card as the files, then you
> can use GetModuleFileName to get the full path of the executable, and
> parse that to get paths for the files.
>
> If the executable is in main storage, but the files are on a card, you
> will need to find the card. The main pain is that the name of the root
> can vary. For English operating system, the base name can be "Storage
> Card", "CF Card" or "SD Card". For other languages, the names will
> probably be different. If a card is removed and replaced, the base
> name may well be modified by a numbers, as in "Storage Card 1",
> "Storage Card 2". So you will need a way to handle all these names
> _and_ make sure the card you find is really the card you want. You can
> use FindFirstFlashCard and relatives for at least some platforms;
> probably all you care about, but definitely not HPC.
>
> >
> >Regards
> >
> >Naveen
>
> -----------------------------------------
> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
>
> Robert E. Zaret, eMVP
> PenFact, Inc.
> 20 Park Plaza, Suite 478
> Boston, MA 02116
> www.penfact.com
>

Re: Query :- how to run a application from storage card by r_z_aret

r_z_aret
Fri Nov 04 14:00:48 CST 2005

On Thu, 3 Nov 2005 22:15:02 -0800, "Naveen koul"
<Naveenkoul@discussions.microsoft.com> wrote:

>
>Hello,
>
>there is one more thing i want to get cleared, that is , when my application
>which is in storage card starts executing , and it will start reading files
>and it allocates certain amont of memory to object that are being
>created.Will it take the storage card memory to get its objects allocated or
>it will allocate the pocket pc 's internal memory.

I don't _know_ the answer. But I would be very surprised if the
storage card is used for such memory in any way; I assume the storage
card is treated very much like a hard drive on "big" Windows. I'm
quite sure such memory comes primarily from base memory. I would be
surprised if CE (and thus Pocket PC) supports virtual memory; if it
does, then the "disk" space used during paging would almost certainly
come from base memory.

>
>Regards
>
>Naveen
>
>"r_z_aret@pen_fact.com" wrote:
>
>> On Sat, 29 Oct 2005 04:12:05 -0700, "Naveen koul"
>> <Naveenkoul@discussions.microsoft.com> wrote:
>>
>> >Sir,
>> >
>> >I need your help, i got ur email id from pocketpcdn forums.
>> >
>> >Sir i got an application which needs some files while running , can i use
>> >storage card (SD) as a medium to rum the exe on my ppc. i ahve provided all
>> >my files inthe storage card.
>> >
>> >what will be the path tot the files i should give if i need to run the
>> >program from storage card.
>>
>> If the executable is on the same storage card as the files, then you
>> can use GetModuleFileName to get the full path of the executable, and
>> parse that to get paths for the files.
>>
>> If the executable is in main storage, but the files are on a card, you
>> will need to find the card. The main pain is that the name of the root
>> can vary. For English operating system, the base name can be "Storage
>> Card", "CF Card" or "SD Card". For other languages, the names will
>> probably be different. If a card is removed and replaced, the base
>> name may well be modified by a numbers, as in "Storage Card 1",
>> "Storage Card 2". So you will need a way to handle all these names
>> _and_ make sure the card you find is really the card you want. You can
>> use FindFirstFlashCard and relatives for at least some platforms;
>> probably all you care about, but definitely not HPC.
>>
>> >
>> >Regards
>> >
>> >Naveen
>>
>> -----------------------------------------
>> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
>>
>> Robert E. Zaret, eMVP
>> PenFact, Inc.
>> 20 Park Plaza, Suite 478
>> Boston, MA 02116
>> www.penfact.com
>>

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

Re: Query :- how to run a application from storage card by Naveenkoul

Naveenkoul
Sat Nov 05 00:25:03 CST 2005


hi ,
In case of virtual memory, when i was coding in EVC++ there were some
memory APIs , those were Virtual Alloc, Heap alloc, and local alloc.What i
feel virtual alloc if used was going to take virtual memory in PPC( i may be
wrong also , i am not sure about it).But in .net i have found no such feature
, of allocation.
I have asked this query becoz there was some reason behind asking this query.

I am coding in C# using PPC but wht is happening my application takes alot
of time to run it executes now in 55 minutes, that is wht has annoyed me
alot. and i am not able to develop a proper approach to it. first there was
file reading problem that i have removed now there is lot of looping going in
it. that is were it is taking a lot of time.and if there are already lot of
files in ppc then the time duration increases. wht i thought was the objects
which are being created may reduce the time, that is why i was looking if i
use storage card as a medium were from my application can run and allocate
memory.This thing i want to confirm.

If u can give me any ideas how shld i get timeduration small , i have to
bring it to to around 2 minutes max.

At present my ideas are gone.

waiting for reply.

Regards

Naveen


"r_z_aret@pen_fact.com" wrote:

> On Thu, 3 Nov 2005 22:15:02 -0800, "Naveen koul"
> <Naveenkoul@discussions.microsoft.com> wrote:
>
> >
> >Hello,
> >
> >there is one more thing i want to get cleared, that is , when my application
> >which is in storage card starts executing , and it will start reading files
> >and it allocates certain amont of memory to object that are being
> >created.Will it take the storage card memory to get its objects allocated or
> >it will allocate the pocket pc 's internal memory.
>
> I don't _know_ the answer. But I would be very surprised if the
> storage card is used for such memory in any way; I assume the storage
> card is treated very much like a hard drive on "big" Windows. I'm
> quite sure such memory comes primarily from base memory. I would be
> surprised if CE (and thus Pocket PC) supports virtual memory; if it
> does, then the "disk" space used during paging would almost certainly
> come from base memory.
>
> >
> >Regards
> >
> >Naveen
> >
> >"r_z_aret@pen_fact.com" wrote:
> >
> >> On Sat, 29 Oct 2005 04:12:05 -0700, "Naveen koul"
> >> <Naveenkoul@discussions.microsoft.com> wrote:
> >>
> >> >Sir,
> >> >
> >> >I need your help, i got ur email id from pocketpcdn forums.
> >> >
> >> >Sir i got an application which needs some files while running , can i use
> >> >storage card (SD) as a medium to rum the exe on my ppc. i ahve provided all
> >> >my files inthe storage card.
> >> >
> >> >what will be the path tot the files i should give if i need to run the
> >> >program from storage card.
> >>
> >> If the executable is on the same storage card as the files, then you
> >> can use GetModuleFileName to get the full path of the executable, and
> >> parse that to get paths for the files.
> >>
> >> If the executable is in main storage, but the files are on a card, you
> >> will need to find the card. The main pain is that the name of the root
> >> can vary. For English operating system, the base name can be "Storage
> >> Card", "CF Card" or "SD Card". For other languages, the names will
> >> probably be different. If a card is removed and replaced, the base
> >> name may well be modified by a numbers, as in "Storage Card 1",
> >> "Storage Card 2". So you will need a way to handle all these names
> >> _and_ make sure the card you find is really the card you want. You can
> >> use FindFirstFlashCard and relatives for at least some platforms;
> >> probably all you care about, but definitely not HPC.
> >>
> >> >
> >> >Regards
> >> >
> >> >Naveen
> >>
> >> -----------------------------------------
> >> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
> >>
> >> Robert E. Zaret, eMVP
> >> PenFact, Inc.
> >> 20 Park Plaza, Suite 478
> >> Boston, MA 02116
> >> www.penfact.com
> >>
>
> -----------------------------------------
> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
>
> Robert E. Zaret, eMVP
> PenFact, Inc.
> 20 Park Plaza, Suite 478
> Boston, MA 02116
> www.penfact.com
>

Re: Query :- how to run a application from storage card by rick

rick
Sat Nov 05 08:46:01 CST 2005

what speed of memory card are you using? In my experience, 32x is the
minimum for reasonable performance. Even then, file IO operations will
be slower on the card than in main memory.

If possible, you should copy the file you are working with to main
memory, do your operations, and then copy back to card (assuming you've
written something), and then delete the main memory copy to make room
for other files from the card.

If you do enough work on a file before moving on to the next, this will
get you performance improvements.

YMMV