|
I have written a dll in C# express edition and would like to call its functions from MapBasic. Here are my scripts:
C# using System; using System.Collections.Generic; using System.Text; using System.Data;
namespace MapInfoTools { public class MIFunctions { public double GPS_X() { //Return test value for now. return 1; } public double GPS_Y() { //Return test value for now. return 2; } } }
MB Declare Function GPS_X Lib "C:\Projects\C#\MapInfoTools\MapInfoTools\obj\Release\MapInfoTools.dll" as float print GPS_X()
My MB application compiles correctly but produces error 342 (“External library does not contain GPS_X…”) at runtime. Can anybody point out where I am going wrong? Cheers, Dean
Dean McGowan GIS Injengör Teknik & Service Upplands Väsby kommun
|
_______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
