The MP3car.com Store The MP3car.com Store    

Sponsored links

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

Reply
 
LinkBack Thread Tools Display Modes
Old 09-01-2005, 07:33 AM   #1
Newbie
 
gsova's Avatar
 
Join Date: Sep 2005
Location: Greece
Posts: 15
Questions about Destinator 3 SDK and VB6

Hi all!

I am writing a frontend with VB6 and Destinator 3 SDK and I have the following questions:

1) Has anyone experienced problems using both the Windows Media Player 9 SDK and Destinator 3 SDK? I have a form in my application to control Media Player and when the WMP object initializes, the Dest object (the destinator window is embedded in my app) stops moving the map. Everything seems to work fine with the code (no run-time errors) but the map is not moving, it just rotates to the correct direction.

2) I am trying to use the Address dialog of Dest while it is embedded in my App and I cannot pass text in its textbox (I am trying to create my own OSK with Greek characters). The problem is that although I open the dialog, I cannot focus in it as seen in MapMonkey and FreeDrive. I tried the Appactivate VB Function but since the window is embedded in my app, Appactivate cannot find the correct window and set the focus on it. Any suggestions?

3) Has anyone experienced incorrect Lat and Lon return when calling the GetCoordinatesFromAddress function of Dest 3 SDK with a city name that uses parenthesis? Example:

dim MyDest as Dest
set MyDest = new Dest
dim MyPoint as DestPoint
set MyPoint = MyDest.DestPointCreate

MyDest.createdestinatorwindow
MyDest.showdestinatorwindow
MyDest.parentwindow = form1.hwnd

' *** Assign a greek city with parenthesis in its name ***
MyPoint.City="Assos (Korinthias)"
MyDest.GetCoordinatesFromAddress MyPoint

' *** Show the desired position in map ***
MyDest.ShowDesiredPosition MyPoint

The ShowDesiredPosition function does not show the correct area in the map. If I try to do it through the Address dialog box of destinator, it works OK.

Many Thanx!
George
gsova is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 09-07-2005, 01:44 PM   #2
FreeDrive Creator
 
CdRsKuLL's Avatar
 
Join Date: Feb 2004
Location: Manchester
Posts: 3,197
Hi m8, sorry would of answered sooner if I had seen it

1. Non moving of map

Unsure on this, but it may have something to do with this line
MyDest.parentwindow = form1.hwnd

Try putting a picture on your form1 and then using something like
SetParent MyDest.GetDestinatorWindowHandle , Picture1.Hwdn

This will then embedd it in the picture, which is in your form. You can then use something like
SetWindowPos MyDest.GetDestinatorWindowHandle, 0, -3, -3, Picture1.Width + 6, Picture1.Height + 40, 0
This will get rid of the bottom bit of the D3 map and the boarder.

2. On calling the Address dialog, it creates a new window which its parent is the desktop, so you need to find the handle of this windows and then use the sendkeys command to send your osk keypresses to it.

3. This is one of the problems with the D3 SDK, I tried many times to sort this problem out and it also seems tied to the maps and the versions they are. I decided in the end just to used the dialog and long / lat points.

hope this info helps you

thanks

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-08-2005, 03:26 AM   #3
Newbie
 
gsova's Avatar
 
Join Date: Sep 2005
Location: Greece
Posts: 15
Hi Cdr, thanks for your response!

Regarding the Dest, with Media player integration, I've decided to use WinAMP with it's SDK, so everything works fine now with MP3.

Regarding the Address Dialog issue:
Correct me if I'm wrong, I understood that I have to pass characters to the desktop handle after I've opened the address dialog... is that correct?

Regarding the parenthesis issue... I'm trying to setup Destinator SDK 5. I hope that this one solves the problem!

Thanx once again!
gsova is offline   Reply With Quote
Old 03-30-2006, 03:21 AM   #4
Newbie
 
Join Date: Mar 2006
Posts: 1
Destinator SDK 5 for Desktop

Hi,
I am trying to use Destinator SDK 5 , on to a Desktop application.
I am using frontend(s) like Delphi/C# windows applications.
Imported the COM in to Delphi/C# and when I use the Destinator function

Mydesti.CreateDestinarotWindowEx(Form1.handle,F_DE FAULT);

The Destinatorwindow hangs for a while and then dissaperas.

any one has the solution for this?

r
babji
babji is offline   Reply With Quote
Old 01-17-2007, 06:36 AM   #5
Newbie
 
gsova's Avatar
 
Join Date: Sep 2005
Location: Greece
Posts: 15
I've experienced the same with the first version of Powerloc's SDK 5 when my system was running Windows XP with SP2. I made a clean install with Windows XP SP1 (without Office and other apps) and it worked but I am not quite sure if that's the case!
gsova is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

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 On
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Destinator PN SDK mr92 Map Monkey 16 09-28-2005 05:59 AM
SDK - VB6 App Gobby RR Bug Tracker 2 05-08-2005 04:58 AM
Delphi SDK examples? Nisos FreeDrive 11 04-23-2005 05:22 PM
Destinator SDK Vittel Software & Software Development 22 08-19-2003 11:41 AM
Destinator SDK Vittel GPS 1 08-08-2003 12:13 AM


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


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