Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

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




  • Prev by Date: Re: writing mathematica script files for the math kernel under linux
  • Next by Date: "Evaluate to Here" (solved)
  • Previous by thread: Re: writing mathematica script files for the math kernel under linux
  • Next by thread: Re: Mathlink