PPP Forum

Information and discussions about our products
Welcome to PPP Forum Sign in | Join | Help
in Search

Breaking changes: our new Navigation solution partner is Sygic

From TomTom to Sygic:
Over the years our former navigation provider reduced his SDK more and more to drive his own business solutions.
Finally a SDK is no longer available!
Looking for an alternative solution we found www.sygic.com/tomtom-sdk.
Why we recommend Sygic:
  • Good support at first hand
  • A modern Navigation Solution (with actual maps)
  • Native .NET support in the SDK (no need for third party solutions)
  • Many operating systems support including Linux and Android
  • A partner which is even able to adapt the Navigation solution to your needs.

Sample of VB.Net

Last post 02-18-2006, 16:26 by FgrSoelco. 6 replies.
Sort Posts: Previous Next
  •  02-13-2006, 23:06 397

    Sample of VB.Net

    Hi,

    We would like to know if there are code examples or information for VB.net

    Thank you,

     

  •  02-13-2006, 23:25 398 in reply to 397

    AW: Sample of VB.Net

    Hi FgrSoleco,

    all our examples are made with C#.

    But since the languages are pretty the same.

    You can find a lot of converters - even online!

    http://kamalpatel.net/ConvertCSharp2VB.aspx

    OR

    http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx

    are the two first entries I found by searching for "c# to vb"

    A short (handcoded example) from our TestTTN:

    private void btnClearFavorite_Click(object sender, System.EventArgs e) {
       try {
    Private Sub btnClearFavorite_Click(ByVal sender As Object, ByVal e As System.EventArgs)
     Try 


       lblLastReturn.Text=
    "??";
       Refresh(); 
       lblLastReturn.Text = "??"
       Refresh 

    short nIDX=short.Parse(txtGetFavoriteIDX.Text);
       if(AskYesNo("Entry will be deleted!!!")) {
       Dim nIDX As Short = Short.Parse(txtGetFavoriteIDX.Text)
       If AskYesNo("Entry will be deleted!!!") Then

       Cursor.Current=Cursors.WaitCursor;
       lblLastReturn.Text=
    TTN.ClearFavorite(nIDX).ToString();
         Cursor.Current = Cursors.WaitCursor
         lblLastReturn.Text = TTN.ClearFavorite(nIDX).ToString 

       }
       else {
       Else 
             'no end bracket in VB


       lblLastReturn.Text=
    "Cancel";
       }
         lblLastReturn.Text = "Cancel" 
       End If

    And so forth - it is really almost the same thing!!

    HTH

    Manfred

  •  02-13-2006, 23:34 399 in reply to 398

    Wink [;)] Re: AW: Sample of VB.Net

    Thank you, I will prove it.Wink <img src=" src="/emoticons/emotion-5.gif">
  •  02-14-2006, 0:05 400 in reply to 399

    AW: Re: AW: Sample of VB.Net

    Hi,

    and if it really does not work - I think you have seen that it is very similar.

    And if that even does not help - then post the "not tranlateable snippet" - I'll help you out

    Manfred

  •  02-18-2006, 11:34 432 in reply to 397

    Re: Sample of VB.Net

    Dear Manfred,

    When I tried of run de TestTTN example, for to see like running, I receive errors like:

    Example: When I push over GetSDKVersion, receive an message like:

    Ver:0

    StrVer:

    MissingMethodExcepcion

    I receive this message an other when I push over other buttons.

    I doubt if I have well installed the SDK of TomTom because alone I have copied the files TomTom Navigator.exe and CESetup.dll

    I have true problems to be able to put into operation the herramienda. 
    Pardon for the nuisances that this causing.

    Regards.

  •  02-18-2006, 15:11 433 in reply to 432

    AW: Re: Sample of VB.Net

    Hi Soleco,

    first about the TomTom SDK related Navigator files.
    You need the To....gator.exe and the data.chk file - the CESetup.dll is not needed.

    GetInternalVersions need (that's why we call it internal) no navigator at all:
    So if this functions runs properly you know TTNCF is well running.
    GetSDKVersion (still no need for TTN) shows that the SDK is working well.
    GetApplicationVersion last not least proofs that TTN runs.

    The error you explain is a typical:
    a.) you did not read the manual
    b.) VS2005 has "strange" defaults
    Error.

    To fix it ensure the following steps:

    Add a reference to PPPTTCF_,...dll (you did - else you could not compile.
    Add the Helper DLL by "add existing element" and choosing the PPPTTHelper...dll. (You could have misssed this - manual [::)]).
    And now the "strange" VS2005 issue - in the properties of the added helper DLL you must set "copy if newer" (default is nothing).

    After that on your device in the applications directory you should find:
    TestTTN.exe
    PPPTTCF....dll
    PPPTTHelper...dll

    HTH

    Manfred

  •  02-18-2006, 16:26 434 in reply to 433

    Re: AW: Re: Sample of VB.Net

     

    Hi Manfred,

    I didn't have the file PPPTT5_2Helper_ARM_5_21_1.TTC in the device PPC.

    Thank you again.

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems