MathLink, MS Visual C++ 5.0: running in debugger
- To: mathgroup at smc.vnet.net
- Subject: [mg9040] MathLink, MS Visual C++ 5.0: running in debugger
- From: "Raymond Beausoleil" <beausol at hpl.hp.com>
- Date: Thu, 9 Oct 1997 01:42:19 -0400
- Organization: Hewlett-Packard Laboratories
- Sender: owner-wri-mathgroup at wolfram.com
I apologize in advance if this is either a stupid or frequently-asked question. But I'm stumped. How does one execute an external MathLink program from Mathematica while watching it perform in the MS Visual C++ 5.0 debugger? I read the documentation in the MathLink Developers Kit (for Win NT 4.0 and Vis C++ 5.0) and tried the command LinkOpen["foo", LinkProtocol->"FileMap", LinkMode->Listen] The problem is that I don't know how to launch the app in the Vis C++ IDE's debugger, and pass _both_ the arguments to the external procedure _and_ the switches "-linkname foo -linkprotocol FileMap -linkmode connect" in the main() arg list. There must be some way to establish a peer-to-peer connection between Mathematica and the debugger, but I can't figure it out. If you could shed light on this problem (using, say, the trivial addtwo example shipped with MathLink), I would be very grateful. -- Ray Beausoleil Hewlett-Packard Laboratories mailto:beausol at hpl.hp.com