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

Thread: Destinator SDK 5 & Pocket PC in .NET

  1. #1
    Newbie ado_civon's Avatar
    Join Date
    May 2006
    Location
    Brisbane
    Posts
    6

    Destinator SDK 5 & Pocket PC in .NET

    I hope someone can help out.

    The PC version includes a DLL DestSDKLib.dll which can be nicely imported into C# or VB.NET in Visual Studio 2003. All works well.

    Unfortunately such DestSDKLib.dll does not exist for the PPC version.

    How do i get Destinator loading in Pocket PC using DestSDK.dll?
    Has anyone tried this or got it working?

    It would be great if someone could help me out, thank you in advance.

  2. #2
    Variable Bitrate
    Join Date
    Apr 2006
    Location
    Dallas, Texas
    Posts
    264
    You could try a process invoke. I never tried it though on a Compact Framework application though, I'm not sure if it will behave any differently.

  3. #3
    Newbie
    Join Date
    Oct 2005
    Posts
    5

    Question Destinator SDK 5 & Pocket PC in .NET

    Hi,

    I've been working with the D3 SDK using interop in Visual Studio 2005 and VB.Net. I've now got the D5 SDK and would like to continue. The initialization is some what different - would you mind showing me the initialization code please. My target is also a PDA - so shortly I'll be going through the same issues - and will help out where I can.
    TG

  4. #4
    Newbie
    Join Date
    Sep 2006
    Posts
    30
    Quote Originally Posted by ado_civon View Post
    I hope someone can help out.

    The PC version includes a DLL DestSDKLib.dll which can be nicely imported into C# or VB.NET in Visual Studio 2003. All works well.
    Hello ado_civon,

    I'm also trying to intergrate Destinator ND (v5) into a PC application. I'm using C# with dotnet 2.0. How did you get it working?

    This is my test application:

    Code:
    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Windows.Forms;
    using DESTSDKLib;
    
    namespace test2
    {
    	public partial class MainForm
    	{
    		Dest test = new DestClass();
    		
    		[STAThread]
    		public static void Main(string[] args)
    		{
    			Application.EnableVisualStyles();
    			Application.SetCompatibleTextRenderingDefault(false);
    			Application.Run(new MainForm());
    		}
    		
    		public MainForm()
    		{
    			InitializeComponent();
    				
    			test.ShowDestinatorWindow();
    		}
    	}
    }
    This is the exception I get @ "test.ShowDestinatorWindow();":

    Code:
    Exception System.InvalidCastException was thrown in debuggee:
    Unable to cast COM object of type 'DESTSDKLib.DestClass' to interface type 'DESTSDKLib.IDest'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{F092A542-5F97-4AFD-886A-1B23A7F04BC8}' failed due to the following error: Bad variable type. (Exception from HRESULT: 0x80020008 (DISP_E_BADVARTYPE)).
    I've tested this in SharpDevelop, Visual Basic 6 and Visual C# 2005 Express on my development PC and on a fresh installed Windows XP PC. All have the same issue.

    Maybe the DestClass object need some more intialization? I've tested with the SDK version include in the latest CentraFuse. CF is written in dotnet 1 and Destinator ND is integrated into it. So it must be possible with the SDK they use.

  5. #5
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,469
    I believe the SDK that centrafuse uses has an extra hash key which is used here
    res = g_Dest.CreateDestinatorWindow(F_DEFAULT,"KEY")

    I think this is whats needed

    CDR

  6. #6
    Newbie
    Join Date
    Sep 2006
    Posts
    30
    Ok, now I'm getting a messagebox "Wrong access key".

  7. #7
    Newbie
    Join Date
    Sep 2006
    Posts
    30

    Arrow

    The problem I had above (cannot cast ... to interface) can be passed by InvokeMember-calls to the COM object.

    Code:
    Type t = Type.GetTypeFromProgID("DestSDK.Dest");
    obj = Activator.CreateInstance(t);
    
    obj.GetType().InvokeMember("CreateDestinatorWindow", System.Reflection.BindingFlags.InvokeMethod, null, obj, new object[]{CREATE_DESTINATOR_FLAG.F_DEFAULT, "KEY"});
    
    ------------
    
    obj.GetType().InvokeMember("ShowDestinatorWindow", System.Reflection.BindingFlags.InvokeMethod, null, obj, null);
    
    ------------
    
    obj.GetType().InvokeMember("HideDestinatorWindow", System.Reflection.BindingFlags.InvokeMethod, null, obj, null);		
    
    ------------
    	
    obj.GetType().InvokeMember("DestroyDestinatorWindow", System.Reflection.BindingFlags.InvokeMethod, null, obj, null);
    When I create the Dest object, a small unpainted window is created in the lefttop of the screen. When I call ShowDestinatorWindow, nothing happens. HideDestinatorWindow and DestroyDestinatorWindow removes the unpainted window. When I remove all maps from the destinator directory, I get a painted window which ask for a map. What am I doing wrong?

  8. #8
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,469
    your doing nothing wrong, the software is designed not to work unless you hold a valid key, this is only available from powerloc themselves.

    CdR

  9. #9
    Raw Wave Laidback's Avatar
    Join Date
    Oct 2003
    Location
    Madrid
    Posts
    1,984
    Anyone still working on this?

    We can get past the 'key' message and I can get the map to show(and show my position etc.) but I haven't got all the extras yet.

    For PC, I mean

  10. #10
    Newbie gsova's Avatar
    Join Date
    Sep 2005
    Location
    Greece
    Posts
    15

    Unhappy

    Quote Originally Posted by Laidback View Post
    Anyone still working on this?

    We can get past the 'key' message and I can get the map to show(and show my position etc.) but I haven't got all the extras yet.

    For PC, I mean
    Laidback,

    How did you get past the 'key' message? Have you patched the DestSDK.DLL?

    I'm stuck with Dest 3 SDK...

Page 1 of 2 12 LastLast

Similar Threads

  1. Pocket PC Dock
    By farmboy30 in forum Fabrication
    Replies: 3
    Last Post: 05-02-2006, 02:05 PM
  2. pocket pc gps on pc
    By vidason in forum GPS
    Replies: 8
    Last Post: 04-12-2006, 05:41 PM
  3. Pocket Pc
    By gboy in forum General Hardware Discussion
    Replies: 3
    Last Post: 06-27-2005, 05:01 AM
  4. WTT/FS - Pocket PC Imat & Tmobile Sidekick 1
    By xdjxklusivex in forum Classified Archive
    Replies: 0
    Last Post: 06-25-2005, 04:00 AM
  5. FS: HP iPAQ Pocket PC h1910 w/ Stereo Earpiece
    By astral in forum Classified Archive
    Replies: 0
    Last Post: 08-03-2003, 01:18 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
  •