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:
    Code:
    ll() = Converter.ChangeDatum(...)
    The solution is to change the declaration to:
    Code:
    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.
    Thanks,

    Put Claude Belgium
     
Loading...