Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Destinator 5/6 in Visual Basic

  1. #1
    Newbie Centauri_dk's Avatar
    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    26

    Destinator 5/6 in Visual Basic

    Has anyone have success with using the SDK in Visual Basic ?
    I Just got the Destinator 5 PN SDK from Destinator and want to try to use it in VB, also with the included examples. But have no luck.

    The first few times it cam with the error “Error creating ActiveX object” with the line:
    Set g_Dest = CreateObject("DestSDK.Dest")
    And now I just get the error
    “Your Software is not correctly installed! Please reinstall the program” and then I exit my VB.

    So has anyone had more lock their an can help me ?

  2. #2
    FLAC mauri's Avatar
    Join Date
    Jan 2004
    Posts
    1,039
    Quote Originally Posted by Centauri_dk View Post
    Has anyone have success with using the SDK in Visual Basic ?
    I Just got the Destinator 5 PN SDK from Destinator and want to try to use it in VB, also with the included examples. But have no luck.

    The first few times it cam with the error “Error creating ActiveX object” with the line:
    Set g_Dest = CreateObject("DestSDK.Dest")
    And now I just get the error
    “Your Software is not correctly installed! Please reinstall the program” and then I exit my VB.

    So has anyone had more lock their an can help me ?
    Destinator PN SDK 5.1.82b have many bug...and impossible use of it for development.
    This is one old discussion....
    Or you have one update version instead of 5.1.82b?

    D6 SDK ...not exist for this moment.


    Mauri

  3. #3
    Newbie Centauri_dk's Avatar
    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    26
    Quote Originally Posted by mauri View Post
    Destinator PN SDK 5.1.82b have many bug...and impossible use of it for development.
    This is one old discussion....
    Or you have one update version instead of 5.1.82b?

    D6 SDK ...not exist for this moment.


    Mauri

    Its a Version i just have got from Destinator so i thing its the newest version, or at list should be.

    Do you have a version you can recoment, that works better?

  4. #4
    Newbie Centauri_dk's Avatar
    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    26
    I can se the version i got form the SDK Team is
    Version 5.1.161_MR
    And the Version used I CentraFuse is
    Version 5.1.161_PC

    So what the different is those versions is I don’t know

    But after some playing around I can get some further and get an other error

    Run-time error 450
    Wrong number of arguments or invalid property assignment

    At the line
    res = g_Dest.CreateDestinatorWindow(F_DEFAULT)

    and the whole function is

    dim g_Dest As Object
    Set g_Dest = CreateObject("DestSDK.Dest")
    g_Dest.ParentWindow = hWnd
    res = g_Dest.CreateDestinatorWindow(F_DEFAULT)

    Hope someone now how to get this to work.

  5. #5
    Maximum Bitrate tolisn's Avatar
    Join Date
    Dec 2003
    Location
    Greece
    Posts
    731
    Get in touch with CDR. He can surely help you out on this.
    The road is long but we are getting there.

  6. #6
    Newbie Centauri_dk's Avatar
    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    26
    Have tried, he has the same problems :-(

  7. #7
    Newbie
    Join Date
    Sep 2006
    Posts
    30
    Hello Centauri_dk,

    I'm also trying to get the SDK working. I tried in Delphi, VB 6, VB.NET and C#.NET using the SDK supplied by CF RC3.

    When compiling, I get the "Interface not supported" COM error. The I tried creating the COM objects at runtime (no binding at designtime). I've got past that error and get a destinator window without map.

    When there are no maps in de Destinator dir, the map switch window is shown. That's how far CDR and I have come.

    Your "Wrong number of arguments" error can be fixed by supplying a valid key, like this:

    g_Dest.CreateDestinatorWindow(F_DEFAULT, "theKey")

    Hope we can get it running soon. The guy from CF has it running but is a partner of Destinator ...

    Maarten

  8. #8
    Newbie
    Join Date
    Sep 2006
    Posts
    30

    Destinator 6 SDK is working!!!

    Hello,

    Today I've got the SDK working in .NET! There are a few tricks that needs to be done before you can use it in .NET.

    First of all you need to enable the Multithread COM theading model.

    Code:
    //[STAThread]
    [MTAThread]
    static void Main()
    When you add the DestSDK.dll to your projects references, Visual Studio/Sharpdevelop will create a .NET wrapper for the DLL (called Interop.DESTSDKLIB.dll). When you want to use CreateDestinatorWindowEx, you need to supply a _RemotableHandle struct. There's no easy way to create such kind of object. The COM object can accept a int32 for the windowhandle, so I've modified Interop.DESTSDKLIB.dll to do this for me. These are the steps to modify:

    • Copy DestSDK.dll to c:\
    • Make the dotnet wrapper: tlbimp c:\DestSDK.dll /out:c:\Interop.DESTSDKLIB.dll
    • Make il of the wrapper: ildasm.exe (dump c:\Interop.DESTSDKLIB.dll to c:\Interop.DESTSDKLIB.il and c:\Interop.DESTSDKLIB.res)
    • Change argumenttype of CreateDestinatorWindowEx to Int32 in both places in Interop.DESTSDKLib.il
    • Compile again: ilasm /DLL /RESOURCE=c:\Interop.DESTSDKLib.res /OUTPUT=c:\Interop.DESTSDKLIB.dll c:\Interop.DESTSDKLib.il


    I've attached a minimal demo. The Interop.DESTSDKLIB.dll is supplied and is for the demo SDK. Destinator SDK is stripped to reduce attachement size.

    Hope this helps some of us.

    Maarten
    Attached Files Attached Files

  9. #9
    Low Bitrate Supergong's Avatar
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    69
    Dont had the time to check your success here....one question: Have you been able to show up some map and do basic navigaton??? How did you come up with a valid key???? The SDK is secured!!! Only Powerloc can provide a valid key otherwise you have to crack it and thats illegal so you cant develop applications and publish them!!!

  10. #10
    Newbie
    Join Date
    Sep 2006
    Posts
    30
    Quote Originally Posted by Supergong View Post
    Dont had the time to check your success here....one question: Have you been able to show up some map and do basic navigaton??? How did you come up with a valid key???? The SDK is secured!!! Only Powerloc can provide a valid key otherwise you have to crack it and thats illegal so you cant develop applications and publish them!!!
    Yes, I'm able to show up a map and use the SDK. The valid legal key is the problem that we have. We can't distribute free software using Destinator 6 SDK. The C# demo uses the Destinator 6 SDK demo ("Not for sale" message in center of screen) and doesn't need a key.

    But there was the same issue with Destinator 3 SDK. In the demo you got the "Not for sale" message. To make use of the full version, you had to buy it. But the full version was illegaly included in FreeDrive (or did CdR had permission to include it?).

    Maarten

Page 1 of 3 123 LastLast

Similar Threads

  1. visual basic runtime
    By illo41100 in forum FreeDrive
    Replies: 1
    Last Post: 09-27-2005, 03:51 AM
  2. Skinning Source Code for Visual Basic
    By NiN^_^NiN in forum Software & Software Development
    Replies: 9
    Last Post: 09-01-2005, 07:29 PM
  3. How to Embed Radiator TV in Visual Basic?
    By NiN^_^NiN in forum Software & Software Development
    Replies: 10
    Last Post: 06-03-2005, 04:56 AM
  4. Visual Basic Question????
    By chuckctv in forum Software & Software Development
    Replies: 9
    Last Post: 12-28-2004, 11:25 AM
  5. Radio visual basic BT878
    By NEO in forum Software & Software Development
    Replies: 0
    Last Post: 10-31-2003, 04:28 PM

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
  •