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...
User Profile
Collapse
-
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#... -
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...
No activity results to display
Show More
Leave a comment: