Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Destinator 3 SDK.. what format to use ?

  1. #1
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,443

    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

  2. #2
    Raw Wave Laidback's Avatar
    Join Date
    Oct 2003
    Location
    Madrid
    Posts
    1,984
    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

  3. #3
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,443
    thanks fella.. I will have a play l8r..

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



    :-)

    CdR

  4. #4
    Variable Bitrate MC_Stoo's Avatar
    Join Date
    Jun 2004
    Location
    Manchester, UK
    Posts
    427

    Thumbs up

    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

  5. #5
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,443
    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

  6. #6
    Variable Bitrate MC_Stoo's Avatar
    Join Date
    Jun 2004
    Location
    Manchester, UK
    Posts
    427
    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

  7. #7
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,443

    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

  8. #8
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,443
    its ok sussed it :-)

  9. #9
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    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

  10. #10
    Low Bitrate
    Join Date
    Oct 2004
    Location
    UK
    Posts
    82
    The guys at destinator sent me a link to the SDK a few weeks ago, but the link won't work

Page 1 of 2 12 LastLast

Similar Threads

  1. Destinator 3 SDK features working
    By loscooby in forum GPS
    Replies: 4
    Last Post: 09-21-2004, 01:46 AM
  2. Destinator 3 SDK availability schedule information
    By Confused in forum Software & Software Development
    Replies: 37
    Last Post: 08-26-2004, 06:57 PM
  3. Destinator SDK + Destinator GPS Module
    By miguelito in forum GPS
    Replies: 3
    Last Post: 07-21-2004, 02:48 PM
  4. Replies: 5
    Last Post: 05-15-2004, 07:30 AM
  5. MP3 or RealOne format? Both Supported in WinAmp & MediaEngine?
    By -al- in forum Software & Software Development
    Replies: 11
    Last Post: 09-18-2003, 02:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •