User Profile

Collapse

Profile Sidebar

Collapse
borjolujo
borjolujo
Last Activity: Sep 14 '09, 08:38 AM
Joined: Aug 25 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • borjolujo
    replied to Managing C++ Garmin API in C#
    I think the problem is in the P/Invoke call:

    [DllImport("QueA PI.dll")]
    private static extern QueErrT16 QueCreatePoint( ref QuePointType point, ref uint handle);

    for the C prototype:

    QueAPIExport QueErrT16 QueCreatePoint( const QuePointType* point, QuePointHandle* handle );

    The parameter are not correct, the API want a pointer and i´m sending var with ref attribute. But when...
    See more | Go to post

    Leave a comment:


  • borjolujo
    started a topic Managing C++ Garmin API in C#

    Managing C++ Garmin API in C#

    I want to call Garmin API (http://developer.garmi n.com/mobile/mobile-sdk/) in VB.Net Compact Framework project. The API is in C++, so i´m making a C# dll project as intermediate way between API dll and VB.Net. I have some problems while executing my code because it throw a NotSupportedExc eption (bad arguments type, i think) in QueCreatePoint call. Here is the C++ API code, and my C# work:


    -- C++ Functions prototype and C#...
    See more | Go to post

  • borjolujo
    started a topic P/Invoke calls with pointers
    in .NET

    P/Invoke calls with pointers

    I´m noob with C++, i need the Visual Basic .NET (Compact Framework 1.1) P/Invoke calls of a Garmin Mobile XT API functions (http://developer.garmi n.com/mobile/mobile-sdk/). I transforms others calls, but these with pointers and handles is too hard to me. Here is the info:


    -- Function prototypes --
    QueAPIExport QueErrT16 QueCreatePoint( const QuePointType* point, QuePointHandle* handle );
    QueAPIExport QueErrT16...
    See more | Go to post
No activity results to display
Show More
Working...