This sort of request (accessing VB dlls, ActiveX, etc.) from MapBasic has been asked a 
lot.  The short answer has been no, but it is technically feasible, it just requires a 
lot of work.  I've created a C++ dll that allows MapBasic to instantiate com objects 
based upon their CLSID and then call functions off of those objects.  My goal had been 
to make this available to the community at large, but I lost the ambition to continue 
with it.  Ultimately it felt like it was just more effort than it was really worth, 
especially with MI's promise of a .NET future.

With that said, I do have it working at least at some level, and I'd be happy to turn 
over the C++ and MB code that I've put together to someone who'd be interested in 
continuing with it, with the understanding that any progress would be shared with the 
MI-L community.  I just don't have the time to take it on myself any more.  The 
working sample that I have instantiates MapX from MapBasic and exports the MapX map to 
a bitmap file.  It's very simple, but it demonstrates instantiating a COM object and 
calling methods from that object.

I'd be happy to discuss in more detail with anyone that's interested.

Thanks,
Gary.

Gary Schwartz
Director of Software Development
Mapping Analytics
2 Graham Road West
Ithaca, NY 14850
(tel) 585-271-6490
(fax) 585-271-1132
[EMAIL PROTECTED]
www.mappinganalytics.com

> apInfo-L   <[EMAIL PROTECTED]> <

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

Reply via email to