Warning

 

Close

Confirm Action

Are you sure you wish to do this?

Confirm Cancel
Member Login
Site Notices
6/25/2018 7:04:05 PM
Posted: 10/27/2004 7:27:47 PM EDT
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 7:29:57 PM EDT
Store the data in XML files on the device. .Net's XML support is pretty impressive.
Link Posted: 10/27/2004 7:30:50 PM EDT
[Last Edit: 10/27/2004 7:31:44 PM EDT 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 7:38:17 PM EDT
First, assemble a DataSet (ds) and then do this to write it:

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

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 8:33:46 PM EDT
[Last Edit: 10/27/2004 8:33:59 PM EDT by DVDTracker]
Link Posted: 10/27/2004 8:37:49 PM EDT
Link Posted: 10/27/2004 9:26:01 PM EDT
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 9:56:49 PM EDT
[Last Edit: 10/27/2004 9:58:12 PM EDT 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 3:34:37 AM EDT
Top Top