Board index » delphi » Can TP 5.5 communicate with Windows?

Can TP 5.5 communicate with Windows?

Greeting,

I need to make an existing TP 5.5 project interact with Windows 3.11/95.
Is that possible?

I need to start a Windows program (exe) from my TP 5.5. app, and I would like
to be able to close it from TP 5.5 as well.

H.P. Illum

 

Re:Can TP 5.5 communicate with Windows?


Quote
HP Illum <h...@dc.dk> wrote:
> Greeting,
> I need to make an existing TP 5.5 project interact with Windows 3.11/95.
> Is that possible?
> I need to start a Windows program (exe) from my TP 5.5. app, and I would like
> to be able to close it from TP 5.5 as well.

  Hello,

That's possible, but I can't remember exactly how. I can give you some
useful hints though. First of all you'll need Ralf Brown's interrupt list.
You can download this from garbo.uwasa.fi/pc/programming or something like
this.

Search interrupt 2fh function 16h Windows API functions. I think you may
exec some of the winapi functions directly (e.g. WinExec as well) but if
not, there must be a SendMessage function. So if you had a small application
running under windows (it's not necessary to open a window for it), which
catches the messages you sent from DOS, you can access the whole windows
api.

Or as an alternative you could write a VXD for windows and create your own
API which would be callable using the int 2f interface.

                        Regards,

                                Balazs Scheidler

*-------------------------------------------------------------------------*
| Author of Turbo Vision Resource WorkShop, the ultimate resource toolkit |
| for Turbo Vision for Pascal and C++. You can get the latest version at  |
| http://www.bitsoft.com/tvrw                                             |
+-------------------------------------------------------------------------+
| UNIX is user friendly. It's just selective about who its friends are.   |
*--------------------------------------------*bAzSi*----------------------*

Other Threads