The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Coders Corner

Reply
 
Thread Tools Display Modes
Old 05-09-2006, 09:58 AM   #1
Newbie
ado_civon's CarPC Specs
 
ado_civon's Avatar
 
Join Date: May 2006
Location: Brisbane
Vehicle: 2005 Holden Commodore VZ SV6
Posts: 6
My Photos: (0)
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.
ado_civon is offline   Reply With Quote
Sponsored Links
Old 06-10-2006, 02:29 AM   #2
Constant Bitrate
Ineffigy's CarPC Specs
 
Join Date: Apr 2006
Location: Dallas, Texas
Vehicle: 2005 Toyota Celica GTS 6
Posts: 222
My Photos: (0)
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.
Ineffigy is offline   Reply With Quote
Old 08-13-2006, 06:20 PM   #3
Newbie
 
Join Date: Oct 2005
Posts: 5
My Photos: (0)
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
TommyGun is offline   Reply With Quote
Old 09-05-2006, 03:15 AM   #4
Newbie
 
Join Date: Sep 2006
Posts: 30
My Photos: (0)
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.
maartenclaes is offline   Reply With Quote
Old 09-05-2006, 04:04 AM   #5
FreeDrive Creator
CdRsKuLL's CarPC Specs
 
CdRsKuLL's Avatar
 
Join Date: Feb 2004
Location: Manchester
Vehicle: Ferrari 360 (nearly)
Posts: 3,197
My Photos: (5)
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
__________________
www.extremeoc.co.uk me building a murcielago kitcar ! - check it out !
www.cellsecurity.co.uk are my new employer ! - yeah I got a job !
CdRsKuLL is offline   Reply With Quote
Old 09-06-2006, 01:29 AM   #6
Newbie
 
Join Date: Sep 2006
Posts: 30
My Photos: (0)
Ok, now I'm getting a messagebox "Wrong access key".

Last edited by maartenclaes; 09-06-2006 at 05:55 AM.
maartenclaes is offline   Reply With Quote
Old 09-06-2006, 04:55 AM   #7
Newbie
 
Join Date: Sep 2006
Posts: 30
My Photos: (0)
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?
maartenclaes is offline   Reply With Quote
Old 09-07-2006, 05:57 PM   #8
FreeDrive Creator
CdRsKuLL's CarPC Specs
 
CdRsKuLL's Avatar
 
Join Date: Feb 2004
Location: Manchester
Vehicle: Ferrari 360 (nearly)
Posts: 3,197
My Photos: (5)
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
__________________
www.extremeoc.co.uk me building a murcielago kitcar ! - check it out !
www.cellsecurity.co.uk are my new employer ! - yeah I got a job !
CdRsKuLL is offline   Reply With Quote
Old 10-25-2006, 05:43 PM   #9
Raw Wave
 
Laidback's Avatar
 
Join Date: Oct 2003
Location: Madrid
Vehicle: Jeep GC
Posts: 1,979
My Photos: (0)
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

Laidback Carputer

Last edited by Laidback; 10-26-2006 at 02:43 AM. Reason: Extra
Laidback is offline   Reply With Quote
Old 01-17-2007, 05:42 AM   #10
Newbie
 
gsova's Avatar
 
Join Date: Sep 2005
Location: Greece
Vehicle: 1997/BMW/E36 316i Coupe
Posts: 15
My Photos: (0)
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...
gsova is offline   Reply With Quote
Sponsored Links
Old 01-17-2007, 12:27 PM   #11
Raw Wave
 
Laidback's Avatar
 
Join Date: Oct 2003
Location: Madrid
Vehicle: Jeep GC
Posts: 1,979
My Photos: (0)
Now would I do such a dishonest thing like that?






And then tell you in plain view of the mods.....
__________________
Laidback

Laidback Carputer

Last edited by Laidback; 01-17-2007 at 12:29 PM.
Laidback is offline   Reply With Quote
Old 01-18-2007, 08:11 AM   #12
Newbie
 
gsova's Avatar
 
Join Date: Sep 2005
Location: Greece
Vehicle: 1997/BMW/E36 316i Coupe
Posts: 15
My Photos: (0)
I converted maartenclaes's code in VB.NET.

I have similar results. I can see that Destinator PN is starting through obj.GetType().InvokeMember and a box appears in the upper-left corner of the screen. I can also Show and Hide the box but no map appears inside the box. If I delete the maps from the ./DestinatorApps/Destinator folder I get the standard Dest PN map selection screen.

maartenclaes, I'm a beginner to .NET. Can you tell me how I could get/set a property for the COM object that is created with obj = Activator.CreateInstance(t) ?

Assuming that I wanted to modify or display the IDest.GPSProtocol Property, how would I have to call it?
gsova is offline   Reply With Quote
Old 01-19-2007, 02:06 AM   #13
Newbie
 
gsova's Avatar
 
Join Date: Sep 2005
Location: Greece
Vehicle: 1997/BMW/E36 316i Coupe
Posts: 15
My Photos: (0)
One more thing to mention: If I remove Destinator.exe from the folder, when I initialize the Destinator Object, I get a message saying "my software is not correctly installed".

Isn't it strange that the DLL requires the EXE to work?

I'll try maartenclaes's code in C#

gsova is offline   Reply With Quote
Old 01-19-2007, 04:57 AM   #14
Raw Wave
 
Laidback's Avatar
 
Join Date: Oct 2003
Location: Madrid
Vehicle: Jeep GC
Posts: 1,979
My Photos: (0)
'Strange' is the other name for the destinator sdk! :-)
__________________
Laidback

Laidback Carputer
Laidback is offline   Reply With Quote
Old 01-21-2007, 05:53 AM   #15
Raw Wave
 
Laidback's Avatar
 
Join Date: Oct 2003
Location: Madrid
Vehicle: Jeep GC
Posts: 1,979
My Photos: (0)
Quote: Originally Posted by gsova View Post
One more thing to mention: If I remove Destinator.exe from the folder, when I initialize the Destinator Object, I get a message saying "my software is not correctly installed".

Isn't it strange that the DLL requires the EXE to work?

I'll try maartenclaes's code in C#


That message comes from destcore.dll
__________________
Laidback

Laidback Carputer
Laidback is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pocket PC Dock farmboy30 Fabrication 3 05-02-2006 02:05 PM
pocket pc gps on pc vidason GPS 8 04-12-2006 05:41 PM
Pocket Pc gboy General Hardware Discussion 3 06-27-2005 05:01 AM
WTT/FS - Pocket PC Imat & Tmobile Sidekick 1 xdjxklusivex Classified Archive 0 06-25-2005 04:00 AM
FS: HP iPAQ Pocket PC h1910 w/ Stereo Earpiece astral Classified Archive 0 08-03-2003 01:18 PM


All times are GMT -5. The time now is 05:14 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics