Mathlink
- To: mathgroup at smc.vnet.net
- Subject: [mg25517] Mathlink
- From: qing.cheng at icos.be
- Date: Thu, 5 Oct 2000 23:50:37 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Dear Mathgroup, I am a new member of Mathematica. I am trying to make communication between Mathematica and one external image processing broad. I have a communcation program which can transfer data between the broad and windows environment and I 've made a test program to link the C program with Mathematica through MathLink. The main problem I encounter now is about data type conversion when I try to send an image from external program to Mathlematica.. The data type I received from broad is BYTE and I only found three data type which MathLink accepts. They are Integer, Real and String(char*). I tried to use MLPutString, since it accept a char*,but I got something else. Then I tried to convert a BYTE* to int* before I send to MathLink and it's OK. However It consumes memory and time. Can I have a better solution? Thanks for any help. Qing Cheng