1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

GPSInt - Microsoft GPS Intermediate Driver Interface

Discussion in 'Additional Libraries' started by hsandy, Apr 4, 2008.

  1. hsandy

    hsandy Member Licensed User

    This library is an interface to the Microsoft GPS Intermediate Driver that is included on WM5 and later devices that have internal GPS hardware. I developed and tested this using a Samsung SGH-I617 (Blackjack II), a WindowsMobile 6 Stardard device. The library was compiled using VS2005 Standard edition and the Windows Mobile 6 Standard SDK. I don't know if this will cause problems if used with WM5 or with touchscreen devices. If different target platforms are needed, let me know.

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Thanks hsandy :)
  3. hsandy

    hsandy Member Licensed User

    Sample program

    Here is a simple source program showing how the GPSInt library works....


    Not sure what happened on the first upload..Most of the code was missing from the program.:signOops:

    I uploaded the source file again.

    Attached Files:

    Last edited: Apr 8, 2008
  4. miataman

    miataman Member Licensed User

    thanks Hsandy !
    this community is génial :sign0060:

    i'm testing your librairy thanks ->

    ETEN X500 label "Status" = GPS ON but all others labels=empty -> no position
    HTC P3300 label "Status" = empty and all others labels= empty -> no position
    Last edited: Apr 15, 2008
  5. Frank

    Frank Member Licensed User

    Assembly not found error

    I get an "assembly not found" - eror when trying to run the sample program from above.
    I have copied everything into one folder on my device (sd-card):
    • GPSInt.dll
    • GPSInt.sbp
    • Microsoft.WindowsMobile.Samples.Location.dll
    • GPSInt.exe
    • GPSInt.exe.config
    Upon starting, the decive says "Error loading program: Microsoft.WindowsMobile.Samples.Location.dll... not found".

    Any idea? Must I register this dll somewhere?

  6. taximania

    taximania Well-Known Member Licensed User

    Now i've got a WM6 device i thought i'd try this.
    I get the same error :sign0148:
  7. hsandy

    hsandy Member Licensed User

    The library was compiled for Windowsmobile Standard (non-touchscreen) devices. Perhaps that is causing a problem...
  8. taximania

    taximania Well-Known Member Licensed User

    Any chance of sharing some source or dll files that you used to compile your dll for us to have a tinker with ?

    I know it sounds idle, but in a previous thread, I once stated, there's now't to be gained by re-inventing the wheel.

    PM me if need be.

  9. hsandy

    hsandy Member Licensed User

    Yes, source files (VS2005) are attached...

    Attached Files:

  10. dennishea

    dennishea Active Member Licensed User


    hsandy, do you know if gpsint.dll work with external gps units?
  11. hsandy

    hsandy Member Licensed User

    No, it will only work with WM5 and WM6 devices with internal GPS hardware because it depends on the Microsoft GPS Intermediate Driver. If your device has an internal gps, you should already have a file (probably hidden) called gpsapi.dll in the \Windows directory.
  12. dennishea

    dennishea Active Member Licensed User

    Thanks for the fast reply hsandy. I was hopeing it would. Oh well. Thank you much for input. Have a nice day.

  13. hsandy

    hsandy Member Licensed User

    For external GPS, you have the excellent Basic4PPC GPS library...
  14. dennishea

    dennishea Active Member Licensed User

    It by itself doesn't work. I've tried to figure it out and no success. If I use GpsGate software then gps4ppc program functions otherwise no deal. I would rather basic4ppc handled the serial port stuff. I have tried different code samples and haven't gotten any of them to work. Again if I use gpsgate to handle the serial interface then basic4ppc works fine.

  15. Frank

    Frank Member Licensed User

    Compiling the library for WM 6 touchscreen devices?


    hsandy said that the library was compiled for non-touchscreen devices.

    It is possible for anyone to compile it for WM6 touchscreen devices? This would include the Orbit XDA (HTC Artemis) with its built-in GPS - a machine which is most likely on the widest used WindowsMobile machines with GPS. Then maybe this Serialport-problem could be solved...

    I'm available to test.

  16. agraham

    agraham Expert Licensed User

    Try this. I've no way of knowing if it will work but it is compiled for .NET 2.0 and WM2003 and later OS.

    Attached Files:

  17. derez

    derez Expert Licensed User

    GPS soft port

    Is there a way to combine the two tools - to open the soft port with the GPSint but to use the methods of GPS.dll library ?
  18. taximania

    taximania Well-Known Member Licensed User

    It doesn't work on my WM6.1 Orbit.
    It won't load as a Component.

    Same error as per other post.
    'Microsoft.WindowsMobile.Samples.Location' was not found.

    When I get time I will have a further look into this.

    TIA Andrew :)
  19. Frank

    Frank Member Licensed User

    New compile doesn't work

    Same with me: The new compile of the library doesn't work on my XDA Orbit with WM6. If I run it on the desktop on B4PPC, I get an error on line 13 (gpsint.openGPS), that "coredll.dll" was not found.
    On the device I get an error "Error loading program: NotSupportedException".

    Any idea?

    Thanks a lot,
  20. taximania

    taximania Well-Known Member Licensed User

    I've got the code to compile to Dll and run on my WM6 device.

    I can 'GPS.Open' and 'GPS.Close' a connection.
    If I 'MsgBox(GPS.Opened)' on the device, it returns 'True'.

    All the other functions fail :sign0137:

    2 hours work and nothing to report :cool:
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice