Then let's be more precise:

Most, if not all, .NET langauges can call DLL's / OCX's, true. But that won't help Colin.

Delphi.NET is the only one that can create DLL's with IL code inside, that can be called from mapbasic. No additional wrappers required. Perhaps managed C++ can also do it now, I can't say for sure.

Last time we discussed this I created this small setup:
www.routeware.dk/dot_net_dll.zip

Regards
Uffe


----- Original Message ----- From: "SCISOFT" <[EMAIL PROTECTED]>
To: "'Mapinfo-L'" <[email protected]>
Sent: Thursday, October 27, 2005 11:00 AM
Subject: RE: MI-L Calling a VB.NET assembly from MapBasic


Not quite right ..

All of .NET supports ordinary, Win32 DLLs (and ActiveX DLLs) - the problem
is just to get MapBasic to call a DLL that's a wrapper to the .NET
application. For that, you're right that you would need to write a C-call
convention DLL in C++ or Delphi.

The problem then just boils down to the usual, with MapBasic - callbacks,
etc.

VB.NET or C#.NET (or for that matter, Cobol.NET or Eiffel.NET) all compile
to much the same IL which the CLR runs in identical fashion.

---
Ian Thomas
GeoSciSoft - Perth, Australia

-----Original Message-----
From: Uffe Kousgaard [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 27, 2005 4:44 PM
To: Mapinfo-L
Subject: Re: MI-L Calling a VB.NET assembly from MapBasic

Colin,

There is only one option to create a DLL based on .NET code that can be
called from mapbasic without any further wrappers:

Delphi.NET

You can be dead sure VB.NET doesn't support such an old-fashioned thing as
DLL's - not even VB6 did that. VB tools and mapbasic just doesn't match up.

Perhaps with a wrapper written in some other language (C++ / delphi).

Regards
Uffe

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.361 / Virus Database: 267.12.5/149 - Release Date: 25/10/2005


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 18489



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 18490

Reply via email to