Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 472
  • Last Modified:

How do I save .sdf file to SD card by using SavefileDialog for Pocket PC

Hi!

I'm working on a pocket pc application in VB.Net in Visual Studio 2005.
Is there anyway that I can save my data from datagrid individually to SD card? Or can I save database.sdf file to SD card as well?
Since my datebase for pocket pc is in sdf format. What will I do to convert from sdf to Access or Excel format when it save to the memory card?
It would be great if you can help me to get savefiledialog and openfiledialog working in my handheld device.

Thank you very much!





Harrison
0
ykhway
Asked:
ykhway
3 Solutions
 
Mikal613Commented:
mm  i answered that question haha
0
 
Mikal613Commented:
There is a save and open file dialog in the pocket pc

Open
http://msdn2.microsoft.com/en-us/library/system.windows.forms.openfiledialog(VS.80).aspx

SAve
http://msdn2.microsoft.com/en-US/library/system.windows.forms.savefiledialog(VS.80).aspx

The only thing is that you need at least the Compact Framework 1.0  installed on the device
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
ykhwayAuthor Commented:
Hi PockyMaster and Mikal613,

Thanks for answering my question!

But how will I save the .sdf file from the pocket pc memory to the memory card?
Or make .sdf file save as Access format to the memory card?

0
 
Mikal613Commented:
if you use the save dialog then you just point to the sd card.

Converting your sdf

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_21713270.html
0
 
PockyMasterCommented:
What you need to keep in mind is, that flash memory can only be used a number of times (approx. 10.000 writes per sector)
If you have a lot of updates and writes to your flash memory, you can/will break it.
It doesnt neccessarily be the case in your example, but keep it in mind.
0
 
Mikal613Commented:
"that flash memory can only be used a number of times (approx. 10.000 writes per sector)
If you have a lot of updates and writes to your flash memory, you can/will break it.
It doesnt neccessarily be the case in your example, but keep it in mind."

never heard of that

Please prove it.
0
 
PockyMasterCommented:
When compared to a hard disk drive, a further limitation is the fact that flash memory has a finite number of erase-write cycles.

Source : Wikipedia

http://en.wikipedia.org/wiki/Flash_memory

They even advertise with it:
"Durability             10,000 insertion/removal cycles"
http://www.meraat.cc/Flash%20Card.htm

You can try it out, write some program to write small amounts of log text e.g. to a flash card, as fast as you can. You will break it.

0
 
Mikal613Commented:
its nice on paper but Everyone uses the sd card
xda-developers.com
howardforums.com

All the experts use it. Acc to your source a sd card is useless.

I wrote many programs and installed it on my sd card and its been 3 years and a sd card never died.

sandisk offers 5 year warrantys while some offer more.

Note: dont worry use the sd card.
0
 
oleggoldCommented:
0
 
PockyMasterCommented:
It is a fact flash memory has a finite amount of write cycles. It depends on your application when you reach it. And a warrant is not a guarantee.

The amounts vary per quality of course :D
Well, you can worry about it or not, I would take a mental note, and remember these statistics when you are designing your product, and see for yourself if it applies to you.

http://www.psism.com/sdcfbi.htm
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now