GPS4PPC in opticomp

Discussion in 'Questions (Windows Mobile)' started by Put Claude, Jan 6, 2008.

  1. Put Claude

    Put Claude Active Member Licensed User

    hi Erel,

    to make things simpeler for me, I opti-compile your code GPS4PPC in net2.
    get the message 'InvalidCastException in Sub GPS_GPSDecoded'.
    What will it say, what do you think I must change in that Sub?

    Put Claude Belgium
  2. Erel

    Erel Administrator Staff Member Licensed User

    I've updated the GPS4PPC source file and it now works properly.
    The problem was that the struct named 'll' was not declared as a double variable and was later assigned a double array:
    ll() = Converter.ChangeDatum(...)
    The solution is to change the declaration to:
    Dim Type(Lat,Lon) ll As Double
  3. Put Claude

    Put Claude Active Member Licensed User

    Hi Erel,

    GPS4PPC is working good now in the opti-compile mode.

    Put Claude Belgium
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice