delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/22/09:30:40

From: hat AT se-46 DOT wpa DOT wtb DOT tue DOT nl
Newsgroups: comp.os.msdos.djgpp
Subject: Interfacing to a MS-Windows application: How ?
Date: 22 Apr 1998 13:05:40 GMT
Organization: Eindhoven University of Technology, The Netherlands
Lines: 34
Message-ID: <6hkpv4$lv2@tuegate.tue.nl>
Reply-To: a DOT hofkamp AT wtb DOT tue DOT nl
NNTP-Posting-Host: se-46.wpa.wtb.tue.nl
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello all,

I'd like to interface my DJGPP program with a MS-Windows app. In
particular, the DJGPP app should be called from Excel or VB (with some
data transferred to the DJGPP program preferably, but I don't mind if
that has to be transferred using a file), run for some time (possibly
several hours), and then "return" to the MS-app. During the return, data
also has to be transferred, but this is potentionally a lot (several
MB's), so transfer using a file is not a problem.

The big question here is how can this be done.

I am pretty good at C++, but am an absolute newbie regarding the
programming techniques in MS-Windows, and the 32-bit DPMI interfacing
techniques.

In other words, I have no idea how to approach this problem regarding
the MS-Windows interfacing. I know that a mechanism called DDE exists,
but I don't know how to use it in Windows or in DJGPP.

I am willing to accept any solution, including the reversal of roles
(DJGPP calls the MS-App to provide data, then performs calculations,
then calls again to let the App handle the results).
Also the change from a DOS-box DJGPP app to a "native" window app is not
impossible, if that works (but I don't know how to do that either, so
pointers regarding that process are also welcome).

If you have pointers to documentation, or web-sites, or actual code,
please let me know.

Albert
---
Sorry, no .sig
The sys admin wiped the previous sig, and I haven't invented a new one yet.
336/robcstf.htm
Any help appreciated.

Regards,
Robin Burrows.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019