How to use PWDBLib.DLL with BASIC programs?

Discussion regarding the PathAway Data Transfer Utility for Windows.
Plenz
Posts: 13
Joined: Sun Jun 10, 2007 10:36 pm

How to use PWDBLib.DLL with BASIC programs?

Postby Plenz » Mon Jun 11, 2007 12:37 am

I have PathAway 3 (without TTQV) and want to export my trackings. Since the PathAwayLog.txt has a limited size, I wrote a program which tries to find tracks in PathAwayDBV.cdb.

My program is not perfect (because I don't have any information about the structure of PathAwayDBV.cdb), but it works rather fine. It shows the tracks on the screen and is able to export them as an Excel file (time, degrees, and x/y/z coordinates), as an AutoCAD script for drawing a 3D line, as a KML file and as a BMP image.

Now I stumbled over PWDBLib.DLL and tried to include it into my program. It seems to work because the result is 0 when my PPC is plugged in, and -7 when it is disconnected. But all other results are also 0. I am trying PWDBCEGetInfo. Whatever I code: flags and pState are always 0, and the pData string is empty.

Are there any further informations how to use this DLL?

Or are there any informations about PathAwayDBV.cdb: how can I find out which track points belong to one track and which ones are actually deleted?

Any hint is appreciated.

Paul Lenz

User avatar
Scott
Site Admin
Posts: 1033
Joined: Mon Apr 18, 2005 8:49 pm
Location: Ontario, Canada
Contact:

Postby Scott » Mon Jun 11, 2007 8:32 pm

Some notes:
In PathAway 4, you can specify the size of your PathAwayLog.txt.
In PathAway 4 PRO, you can even specify the name of the tracklog and the sentences to record.

As for Basic, if someone can write a wrapper for PWDBLib.DLL to make PathAway work better with Basic, it would be appreciated. It is on our to-do list to address this issue soon.

User avatar
Scott
Site Admin
Posts: 1033
Joined: Mon Apr 18, 2005 8:49 pm
Location: Ontario, Canada
Contact:

Postby Scott » Mon Jun 11, 2007 8:34 pm

I do not recommend parsing PathAwayDBV.cdb. It is intended for internal use and may change at any time. The DLL is the better choice since it will always be compatible. Note, The PathAway Data Transfer Utility uses the PWDBLib.dll extensively.

Plenz
Posts: 13
Joined: Sun Jun 10, 2007 10:36 pm

Postby Plenz » Wed Jun 13, 2007 12:46 am

Why does PWDBLib.DLL need a wrapper? Is it not possible to use it in a BASIC program?

Surely I would prefer to use PWDBLib.DLL instead of parsing PathAwayDBV.cdb, but if it doesn't work, I have to other choice. And I am happy enough with PA3, so I have no reason to upgrade to a version which is not compatible with my program.

Paul Lenz

User avatar
Scott
Site Admin
Posts: 1033
Joined: Mon Apr 18, 2005 8:49 pm
Location: Ontario, Canada
Contact:

Postby Scott » Wed Jun 13, 2007 1:29 am

If you want to send me your program, I can do some debugging to determine why the data is not going through.

Plenz
Posts: 13
Joined: Sun Jun 10, 2007 10:36 pm

Postby Plenz » Wed Jun 13, 2007 8:31 am


User avatar
Scott
Site Admin
Posts: 1033
Joined: Mon Apr 18, 2005 8:49 pm
Location: Ontario, Canada
Contact:

Postby Scott » Wed Jun 13, 2007 6:10 pm


Plenz
Posts: 13
Joined: Sun Jun 10, 2007 10:36 pm

Postby Plenz » Thu Jun 14, 2007 2:25 am


Plenz
Posts: 13
Joined: Sun Jun 10, 2007 10:36 pm

Postby Plenz » Thu Jun 14, 2007 11:12 pm

I created a download page on my homepage where you can find my PA track reader and also four trials for the dll file. Please download at least one of the trials and let me know what your debugger reports.

Thanks, Paul

User avatar
Scott
Site Admin
Posts: 1033
Joined: Mon Apr 18, 2005 8:49 pm
Location: Ontario, Canada
Contact:

Postby Scott » Wed Jun 20, 2007 9:00 pm

Ok Paul,
We will give it a try.

Plenz
Posts: 13
Joined: Sun Jun 10, 2007 10:36 pm

Postby Plenz » Tue Jun 26, 2007 12:51 am


User avatar
Scott
Site Admin
Posts: 1033
Joined: Mon Apr 18, 2005 8:49 pm
Location: Ontario, Canada
Contact:

Postby Scott » Wed Sep 05, 2007 10:18 pm

I believe this issue is resolved right?

Guest

Postby Guest » Fri Sep 07, 2007 12:59 am


Plenz
Posts: 13
Joined: Sun Jun 10, 2007 10:36 pm

Postby Plenz » Wed Sep 12, 2007 11:35 pm

Attachments
PATest1.xls
(22.5 KiB) Downloaded 192 times


Return to “PathAway Data Transfer Utility”

Who is online

Users browsing this forum: No registered users and 1 guest