Hi All,

Here is my 2 cents worth, since I was asleep while this was happening.

With MS Visual Studio .NET, Borland Delphi Studio, and #develop you can
create a Win32 DLL that can be called from MapBasic and contains .NET
code, and controls, etc code without any additional coding.  I prefer
using C# and it wasn't a huge learning curve to move from VB.

Engage3D is a .NET product that runs from inside MapInfo
(http://www.encom.com.au).

Unfortunately I don't have a sample that I can share.

The interaction between MapInfo and a DLL can easily be achieved with an
OLE call back to MapInfo.  This is easy to setup and works well.

Hope this helps.

Cheers Ian

Ian Tidy
GIS Administrator
Works Asset Department
Napier City Council
Hastings St, Private Bag 6010, Napier, New Zealand
Phone +64-6-835-7579 Ext. 8115
Fax +64-6-835-7574
mailto:[EMAIL PROTECTED]
http://www.napier.govt.nz





-----Original Message-----
From: SCISOFT [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 27 October 2005 11:30 p.m.
To: 'Mapinfo-L'
Subject: RE: MI-L Calling a VB.NET assembly from MapBasic

Uffe

Sure, I recall that - about 12 months ago. 

And Delphi is perhaps unique in combining Win32 and .NET code (I don't
know), but it still remains a possibility that any C-calling convention
DLL (eg, one made with unmanaged C++ or C code / compiler) would be able
to run a .NET assembly, and that .NET assembly could talk back. 

That's all I was saying .. 

Maybe Colin's probably better advised to look at MapXtreme .NET? (except
for the cost - writing a bit of C++ and some .NET code in even the
so-uncool VB.NET is as cheap as zero $ - more if Visual Studio is
purchased). 

---
Ian Thomas
GeoSciSoft - Perth, Australia


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

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'" <mapinfo-l@lists.directionsmag.com>
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

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

-- 
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: 18491


######################################################################

This e-mail message has been scanned and cleared by MailMarshal 

######################################################################

######################################################################
Attention: 
This e-mail message and accompanying data may contain information that
is confidential and subject to legal privilege. Any information
provided is given in good faith. However unless specifically stated to
the contrary, Napier City Council accepts no liability for the
content of this e-mail or for the consequences of any action taken on
the basis of the information provided, unless that information is
subsequently confirmed in writing. If you are not the intended recipient,
you are notified that any use, dissemination, distribution or copying
of this message or data is prohibited. If you received this e-mail
message in error, please notify us immediately and erase all copies
of this message and attachments. Thank you.

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

Reply via email to