Re: [MI-L] Mapbasic and Delphi 2005 Dll

2006-10-27 Thread Uffe Kousgaard
I have updated your code to properly show a form using Delphi 2005 (or any 
other Delphi for that matter).


The mapbasic declaration looks like this:
Declare Sub AssetForm Lib somename.dll

Regards
Uffe

- Original Message - 
From: Nathan Woodrow

To: MapInfo-L@lists.directionsmag.com
Sent: Monday, October 23, 2006 12:39 AM
Subject: [MI-L] Mapbasic and Delphi 2005 Dll


Procedure AssetForm; StdCall;
Var
 AForm: TAssetCaptureForm
Begin
 AForm:= TAssetCaptureForm.Create(Nil);
 AForm.showmodal;
 AForm.free;
End;

Exports
 AssetForm;

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: [MI-L] Mapbasic and Delphi 2005 Dll

2006-10-24 Thread Trey
The mail from Monday I sent from the office got lost some where so I do it 
again.

You can go to my web site in the download section and get UltraMsg
I wrote this back in 1999 and the zip file has all the source and examples for 
MBX's.  About half way down the page:
http://www.wap3.com/download/index.shtml

The main thing on creating forms in DLL is to do a create and get the handle, 
then set up position/size, title, fonts, data, and then show the form and 
finally you have to destroy it.

UltraMsg provides, as its name says, it is a Rich Text Editor.
Plus just about every type of conversion and math, like real XOR, string 
search and replace and many, many more.

To recompile the dll, it should work as is, you will need to get HyperString.
After scouring the net for a couple of hours it looks as though EFD Systems 
and Ernie Deel [author] have dissappeared.
So in lieu of any copywrit stuff you can download the last D6 free version 
from here on my web:
http://www.wap3.com/download/hstr540.zip


On Sunday 22 October 2006 5:39 pm, Nathan Woodrow wrote:
 Hi All,

 Just a little help with a Dll, I have created using Delphi 2005.

 The Delphi project contains the Dll and a Unit(Form) which I want to be
 able to call from mapbasic.

 I have complied the Dll and complied my little mapbasic code that calls
 the Dll procedure, but however when I run the mbx, mapinfo shows up a
 error saying Memory can not be read.

 I was just wondering can Delphi 2005 make Dll's that can export
 functions that mapbasic can call on, if so how?

 An Example the Delphi code:

 Procedure AssetForm; StdCall;
 Var Aform: TAssetCaptureForm
 Begin
 AForm:= TAssetCaptureForm.Create(Nil);
 End;

 Exports
 AssetForm;


 I don't have much code written up as I am still trying to test this way
 of doing a few things, but so far just getting the form to show up is
 giving me a headache.

 Thanks

 Nathan Woodrow
 GIS/Asset Support Officer
 Warwick Shire Council
 Ph: (07) 4661 0463

 Email: [EMAIL PROTECTED]

-- 
Failure is not an option...
it comes standard with all Microsoft products.
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


SV: [MI-L] Mapbasic and Delphi 2005 Dll

2006-10-23 Thread Thomsen, Bo Victor



Nathan -

Ages ago, I uploaded a small example on how to use a 
delphi based form from MapInfo/MapBasic to the Directsmag website. And surprise, 
surprise - It's stillthere:

http://www.directionsmag.com/files/index.php/view/324

The 
example show how to program a modal form, i.e a form that keeps focus until the 
user dismisses it by cliking a Cancel or a Ok button on the form.A 
modeless form is a bit trickier tomake, so I suggest you start with the 
modal type. 

If you want a good introduction to general MapBasic/Delphi 
integration,you can download 10 small and very good examples made by Robert 
Edwards from:
ftp://members.aol.com/MTFTPSite/dpmbdlls.exe 

Regards 
Bo 
Thomsen
GeoConsult I/S


  
  
  Fra: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] På vegne af Nathan 
  WoodrowSendt: 23. oktober 2006 00:40Til: 
  MapInfo-L@lists.directionsmag.comEmne: [MI-L] Mapbasic and Delphi 
  2005 Dll
  
  Hi 
  All,
  
  Just a little 
  help with a Dll, I have created using Delphi 2005.
  
  The Delphi 
  project contains the Dll and a Unit(Form) which I want to be able to call from 
  mapbasic.
  
  I have complied the Dll 
  and complied my little mapbasic code that calls the Dll procedure, but however 
  when I run the mbx, mapinfo shows up a error saying "Memory can not be 
  read".
  
  I was just 
  wondering can Delphi 2005 make Dll'sthat can export 
  functions that mapbasic can call on, if so how? 
  
  An 
  Examplethe Delphi code:
  
  Procedure 
  AssetForm; StdCall;
   Var Aform: 
  TAssetCaptureForm
  Begin
   AForm:= 
  TAssetCaptureForm.Create(Nil);
  End;
   
   Exports
   
  AssetForm;
  
  
  I don't have 
  much code written up as I am still trying to test this way of doing a few 
  things, but so far just getting the form to show up is giving me a 
  headache.
  
  Thanks
  
  Nathan 
  Woodrow
  GIS/Asset Support 
  Officer
  Warwick Shire Council
  Ph: (07) 4661 0463
  
  Email: 
  [EMAIL PROTECTED]
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


[MI-L] Mapbasic and Delphi 2005 Dll

2006-10-22 Thread Nathan Woodrow



Hi 
All,

Just a little 
help with a Dll, I have created using Delphi 2005.

The Delphi 
project contains the Dll and a Unit(Form) which I want to be able to call from 
mapbasic.

I have complied the Dll and complied my little mapbasic 
code that calls the Dll procedure, but however when I run the mbx, mapinfo shows 
up a error saying "Memory can not be read".

I was just 
wondering can Delphi 2005 make Dll'sthat can export functions 
that mapbasic can call on, if so how? 


An 
Examplethe Delphi code:

Procedure 
AssetForm; StdCall;
 Var Aform: 
TAssetCaptureForm
Begin
 AForm:= 
TAssetCaptureForm.Create(Nil);
End;
 
 Exports
 
AssetForm;


I don't have 
much code written up as I am still trying to test this way of doing a few 
things, but so far just getting the form to show up is giving me a 
headache.

Thanks

Nathan 
Woodrow
GIS/Asset Support Officer
Warwick Shire Council
Ph: (07) 4661 0463

Email: 
[EMAIL PROTECTED]
___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l