Announcement

Collapse
No announcement yet.

Destinator 3 SDK.. what format to use ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Destinator 3 SDK.. what format to use ?

    Lo peeps, still here working on a frontend and learning VB at the same time. The examples in the sdk read me arent in VB, so I was hoping some one could help me out.. .Also I would like help or info on how to calc the speed..

    example

    GetCurrentCarPosition
    Detects current car position.
    HRESULT GetCurrentCarPosition(IDestPoint* pPoint)
    Parameter:
    pPoint
    [in] coordinates of the current car position.
    Return value:
    Returns S_OK on success or an error HRESULT on failure.

    unsure what this statement would look like in vb..

    thanks

    CdR
    Follow me on Twitter

    http://www.FreeICE.co.uk

  • #2
    Something like this?

    Code:
                    'Get current position
                    
                    Dim dis As DESTDLLLib.DestPoint
                    Set dis = New DESTDLLLib.DestPoint
                    Set dis = d.GetCurrentCarPosition
                    dis.Description = "whatever"
    
                    'Then to add the position as a favourite
    
                    Dim fName As String
                    fName = "Auto Alert 1"
     
                    If Not dis.Description = "" Then
                    d.AddPointToFavoritFolder fName, dis
    Laidback


    The ultimate CarPC - Wow!

    Comment


    • #3
      thanks fella.. I will have a play l8r..

      heres a current screen shot of it atm.. its getting there slowly :-)



      :-)

      CdR
      Follow me on Twitter

      http://www.FreeICE.co.uk

      Comment


      • #4
        Lookin' good Steve

        Don't forget to make it skinnable (VB for dummies, chapter 14, section 5)
        A calm approach in a troubled world...
        http://www.inside-guide.co.uk/CarPC

        CONSOLE_RR Project in progress...
        DC UK Forum

        Comment


        • #5
          yeah it will be a good couple of weeks at least, but its going to be skinable when i've finished :-) just getting all the code right first :-)



          CdR
          Follow me on Twitter

          http://www.FreeICE.co.uk

          Comment


          • #6
            Cool

            I think it would be a big step forward if we can all customise our D3 skins to match our frontend skins
            A calm approach in a troubled world...
            http://www.inside-guide.co.uk/CarPC

            CONSOLE_RR Project in progress...
            DC UK Forum

            Comment


            • #7
              more problems..

              ok.. i'm trying to grab the street id's from a city id.. but unsure of the syntax I should be using.. please help :-)

              heres what is says

              Retrieves an array of street IDs for a city. The city must be defined by its ID and this value must
              be greater or equal then 0 and less than number of cities in the map minus 1. The number of cities
              for the map can be detected by get_CityCount method.
              HRESULT GetArrayOfStreetsIDForCity(long nCityID, IDestIDArray**
              ppIDestIDArray)
              Parameter:
              nCityID
              [in] the city ID.
              ppIDestIDArray
              [out, retval] the array of street IDs.
              Return value:
              Returns S_OK on success or an error HRESULT on failure.

              So lets say I do the following

              Dim street() As Variant
              Dim CityID as Long
              Dim Result as Long

              CityID = "17"

              Result = g_Dest.GetArrayOfStreetsIDForCity(CityID,street())

              This doesnt work of course. .so I tried this..

              Street = Array(g_Dest.GetArrayOfStreetsIDForCity(CityID))

              that didnt work either. .lol

              pointers would be helpful..

              cheers

              CdR
              Follow me on Twitter

              http://www.FreeICE.co.uk

              Comment


              • #8
                its ok sussed it :-)
                Follow me on Twitter

                http://www.FreeICE.co.uk

                Comment


                • #9
                  where can I find the D3 SDK and example?
                  __________________
                  CENTRAFUSE http://www.centrafuse.com
                  01 Jeep Cherokee Sport 4x4 Installed
                  M10000/512Mb/20GB, Lilliput 7", Holux GM-210

                  Comment


                  • #10
                    The guys at destinator sent me a link to the SDK a few weeks ago, but the link won't work

                    Comment


                    • #11
                      veetid u have a pm
                      Follow me on Twitter

                      http://www.FreeICE.co.uk

                      Comment


                      • #12
                        Is the SDK that Skuzzle2 has the latest version?
                        AMD XP 2600+/512MB RAM/120GB hard drive
                        Opus 150W/DVD/GPS/7" Lilliput TS/802.11g/Bluetooth
                        Installed.


                        -GPSSecure- - GPS Tracking
                        -AltTabber2.2.2- - Handy touchscreen utility.

                        Comment

                        Working...
                        X