Peter

As I recall from doing this some time ago with MS Access v2.0 and Windows
95, the Windows 16 APIs do not give the desired amount of control. So it is
important to use the much better Win32 API calls where appropriate, meaning
that the OS (Windows) should be the later versions, and also the MapInfo
version should be the fully-32bit-version.

If you're targeting Win2K / XP and MI 6.5 then I think you can use the best
API calls.  

The application running the controlling language (eg, MS Access 2.0 uses VBA
but it is largely 16-bit; my guess is that MI v4.5 and earlier also use
16bit coding) is as important as the OS. 

It's not a matter of the difference between Delphi and Visual Basic or
MapBasic - it's the Windows API calls that are important. From my memory of
coding such waits (for VB6 and the Office 2000 / XP applications on Win98,
Me, 2000, XP) there aren't any callbacks that you need. 

I think Bill Thoen knows all the requirements for writing MapBasic-callable
DLLs - I don't. 
 
Ian Thomas
Scientific Software
Perth, Australia 

-----Original Message-----
From: Peter Horsb�ll M�ller [mailto:[EMAIL PROTECTED] 
Sent: Friday, 2 April 2004 2:03 PM
To: [EMAIL PROTECTED]
Subject: MI-L Using WinExecute with wait

Hi,

Has anyone tried using some API function to start an application and wait
for this application to finish ?

I know about the WinExecute but this doesn't wait until the application has
finished. There is also a function called CreateProces, but it look quite a
bit more complicated, so if anyone had allready implemented this function in
MapBasic I'd love to know.


Cheers,
Peter Horsb�ll M�ller
GIS Udvikler
Geographical Information & IT

COWI A/S
Odensevej 95
5260 Odense S.

Telefon 6311 4900
Direkte 6311 4908
Mobil 5156 1045
Telefax 6311 4949
E-mail [EMAIL PROTECTED]
http://www.cowi.dk


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



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

Reply via email to