Re: Calling a c++ dll with Mathlink
- To: mathgroup at smc.vnet.net
- Subject: [mg21153] Re: Calling a c++ dll with Mathlink
- From: Dave Richardson <dhr at glue.umd.edu>
- Date: Fri, 17 Dec 1999 01:22:14 -0500 (EST)
- Organization: University of Maryland
- References: <815d2c$4i2@smc.vnet.net> <831h8r$dc4@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Jens-Peer, Thanks for your help, but I have since resolved the problem! Dave! Jens-Peer Kuska wrote: > Hi Dave, > > write a C/C++ program that calls MLMain() and the correct templates > for your functions. For MathLink it does not matter where the functions > are > defined. When the linker find it all works fine, > but it must have some entry points that define the pattern and the > parameter > for the main loop of the mathlink program. > > Can you send me a source code ? So that I can see where the problem > happens ? > > Regards > Jens > > Dave Richardson wrote: > > > > Hi, > > > > Is there a faq, or book or something which will help guid me. > > > > I have written a dll in C++. > > > > I can write a c++ program which calls this dll, and produces results. > > > > I cannot however get a mathlink pragram which makes these functions > > available to link. > > > > I am using microsoft Visual c++ 6, with static linking. -- Dave Richardson University of Maryland Department of Mechanical Engineering Center for Environmental Energy Engineering (301) 405-8726 dhr at glue.umd.edu