Warning

 

Close

Confirm Action

Are you sure you wish to do this?

Confirm Cancel
Member Login
Site Notices
Posted: 10/27/2004 6:27:47 PM EST
I am trying to develop a program for the pocket PC written in C# that allows the user to enter where their shots are hitting on a target and then stores the data and calculates MOA for the day. I am making this because of my inability to remember how I shot the day or week before with different rifles. With this program I could get more done per range trip and track how Im shooting.

My question is fo you know the easiest way to store the data, I pretty much have the rest written, I just need to some help in this area. I am a newb programmer so any help would be appreciated!
Link Posted: 10/27/2004 6:29:57 PM EST
Store the data in XML files on the device. .Net's XML support is pretty impressive.
Link Posted: 10/27/2004 6:30:50 PM EST
[Last Edit: 10/27/2004 6:31:44 PM EST by mattpsky]
Ive been trying to figure out XML serialization, but it seems pretty tricky. I need to find a way to serialize an entry object that includes an arraylist into XML
Link Posted: 10/27/2004 6:38:17 PM EST
First, assemble a DataSet (ds) and then do this to write it:

ds.WriteXml(filename, XmlWriteMode.WriteSchema);
Link Posted: 10/27/2004 6:44:21 PM EST
thats my idea, but more like a digital NRA data book I'm using VB.net
Link Posted: 10/27/2004 6:52:03 PM EST
Thanks kill-9...Im gonna give it a whirl.
Link Posted: 10/27/2004 6:53:36 PM EST

Originally Posted By mattpsky:
Thanks kill-9...Im gonna give it a whirl.



OK, I'm heading to bed, but if you run into problems IM me and I'll get back to you in the morning.
Link Posted: 10/27/2004 7:33:46 PM EST
[Last Edit: 10/27/2004 7:33:59 PM EST by DVDTracker]
Link Posted: 10/27/2004 7:37:49 PM EST
Link Posted: 10/27/2004 8:26:01 PM EST
Sweetness! thanks DVD tracker... that worked badass. If I get this program working like I want it maybe I can donate it too ARFCOM and people can improve on it.
Link Posted: 10/27/2004 8:56:49 PM EST
[Last Edit: 10/27/2004 8:58:12 PM EST by mattpsky]
Wait, now Im running into a new problem, the bullet hole objects that I am including inside an arraylist within the Entry object cannot be serialized. The debugger says I should use the XMLInclude to fix the problem....any hints on this?
Link Posted: 10/28/2004 2:34:37 AM EST
Top Top