Hi Guys,
I am trying to get a fix from a GPS using a SDK called Franson GPS
tools. http://www.franson.com/gpstools
I have gotten quite far on my own but am stuck - when I create a
instance of class called GpsFix i get a compile error that no
constructors are defined.
It appears to me that I must set the position property of gpsfix before
I use it? But I also see that position is a class in itself?
My code is below. If someone can see where I am going wrong please
advise.
Thanks heaps.
-Al
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
GpsToolsNET.License objLicense = new GpsToolsNET.License();
objLicense.LicenseKey = "o8h1j88qlSqkaJHiu27oixldj7redk4YoCh3";
// Create parser
GpsToolsNET.NmeaParser objparser = new GpsToolsNET.NmeaParser();
GpsToolsNET.GpsFix objFix = new GpsToolsNET.GpsFix();
objparser.NoEvents = true;
objparser.PortEnabled = true;
objparser.GetGpsFix(3000, 2);
}
private void btnConvert_Click(object sender, EventArgs e)
{
MessageBox.Show(textBoxLatitude.Text + " " + textBoxLongitude.Text);
}
}
}