Click here to Skip to main content
15,881,690 members
Home / Discussions / C#
   

C#

 
AnswerRe: Global ( sort of) event ? Pin
Jimmanuel8-May-09 1:08
Jimmanuel8-May-09 1:08 
GeneralRe: Global ( sort of) event ? Pin
Noctris9-May-09 8:10
Noctris9-May-09 8:10 
GeneralRe: Global ( sort of) event ? Pin
Jimmanuel9-May-09 10:08
Jimmanuel9-May-09 10:08 
Questionhow to include Sql Server 2000 database in a setup project? Pin
lockepeak7-May-09 22:44
lockepeak7-May-09 22:44 
AnswerRe: how to include Sql Server 2000 database in a setup project? Pin
Noctris8-May-09 0:00
Noctris8-May-09 0:00 
QuestionBrowser content not to visible to user intially for sometime? Pin
svt gdwl7-May-09 22:30
svt gdwl7-May-09 22:30 
QuestionHow to lock the msi setup for a specific period? Pin
svt gdwl7-May-09 22:20
svt gdwl7-May-09 22:20 
QuestionGPS/GSM application Pin
Nanyoe7-May-09 22:09
Nanyoe7-May-09 22:09 
My GPS application can detect not only a Bluetooth GPS receiver but also a GPS/GSM Micro Tracker(it was connected to my application via TCP). I have to send SMS command and it reply back the GPS data(NMEA data - $GPRMC). The problem is that the application can display GPS data($GPGGA) from the Bluetooth GPS receiver but it can't display the data from the gsm machine. Whenever I send sms, I receive back the GPRMC data and I can show it in my textbox but I can't display it on my VE map. The following problem occurs. Thanks in advance. Regards.

http://img172.imagevenue.com/img.php?image=81285_problem2_122_505lo.JPG

The followings are some of my codes.
private void ProcessNMEAData(string data)
        {
            string[] NMEALine = data.Split('$');
            string[] NMEAType;

            for (int i = 0; i < NMEALine.Length; i++)
            {
                NMEAType = NMEALine[i].Split(',');

                
                    switch (NMEAType[0])
                    {
                        case "GPGGA":
                            ProcessGPGGA(NMEAType);
                            break;
                        case "GPGLL":
                            break;
                        case "GPGSA":
                            break;
                        case "GPGSV":
                            break;
                        case "GPRMC":
                            ProcessGPRMC(NMEAType);
                            break;
                        case "GPVTG":
                            break;
                                                        
                    }
                
            }
        }

        private void ProcessGPRMC(string[] data)
        {
            
            double lat, lon;
            double rawLatLong;

            rawLatLong = double.Parse(data[3].Replace(":00", ""));
            lat = ((int)(rawLatLong / 100)) + ((rawLatLong - (((int)(rawLatLong / 100)) * 100)) / 60);

            if (data[4] == "S")
                lat *= -1;

            rawLatLong = double.Parse(data[5].Replace(":00", ""));
            lon = ((int)(rawLatLong / 100)) + ((rawLatLong - (((int)(rawLatLong / 100)) * 100)) / 60);

            if (data[6] == "W")
                lon *= -1;

            if (internetConnected && !loadingFile)
            {
                StringBuilder sb = new StringBuilder();
                sb.AppendFormat("<div>Latitude: {0}<br/>Longitude: {1}<br/>Speed: {2}</div>", lat, lon, data[7]);
                AddPushpin(lat, lon, sb.ToString());
            }
            else if (loadingFile)
            {
                object[] param = new object[] { lat, lon };
                webBrowser1.Document.InvokeScript("AddPoint", param);
            }
        }

Questionusing printer driver in vb,net Pin
tauras817-May-09 21:06
tauras817-May-09 21:06 
AnswerRe: using printer driver in vb,net Pin
Mycroft Holmes7-May-09 21:39
professionalMycroft Holmes7-May-09 21:39 
Questionc# Trackbar Arrowkeys bug Pin
VoNa197-May-09 20:32
VoNa197-May-09 20:32 
AnswerRe: c# Trackbar Arrowkeys bug Pin
Dave Kreskowiak8-May-09 1:11
mveDave Kreskowiak8-May-09 1:11 
GeneralRe: c# Trackbar Arrowkeys bug Pin
VoNa198-May-09 1:56
VoNa198-May-09 1:56 
QuestionHow to get Data labels In charts using C# Pin
amitabha20077-May-09 20:11
amitabha20077-May-09 20:11 
QuestionVOIP Pin
imranliaqat7-May-09 20:10
imranliaqat7-May-09 20:10 
AnswerRe: VOIP Pin
Mycroft Holmes7-May-09 21:36
professionalMycroft Holmes7-May-09 21:36 
QuestionQuery to get number of tables Pin
arun_pk7-May-09 19:39
arun_pk7-May-09 19:39 
AnswerRe: Query to get number of tables Pin
Spunky Coder7-May-09 20:51
Spunky Coder7-May-09 20:51 
Questionpop up progress bar Pin
S K Y7-May-09 19:39
S K Y7-May-09 19:39 
AnswerRe: pop up progress bar Pin
N a v a n e e t h7-May-09 19:41
N a v a n e e t h7-May-09 19:41 
GeneralRe: pop up progress bar Pin
S K Y7-May-09 19:52
S K Y7-May-09 19:52 
GeneralRe: pop up progress bar Pin
Dave Kreskowiak8-May-09 1:00
mveDave Kreskowiak8-May-09 1:00 
Questionneed a print monitor component Pin
vijayatbics7-May-09 19:31
vijayatbics7-May-09 19:31 
AnswerRe: need a print monitor component Pin
OriginalGriff7-May-09 22:02
mveOriginalGriff7-May-09 22:02 
Questionlisten to a network printer? Pin
vijayatbics7-May-09 19:18
vijayatbics7-May-09 19:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.