[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Embedding 'C' calls in SQR



Steve,

> Has anyone used the embedded 'C' calls?
> We want to pass dozens of strings to the called 'C' function.
> Are we restricted to the UCALL interface? Can we just declare a function found in a DLL and use it?

I'm not sure about calling DLLs, but I would recommend the "ufunc"
interface over the "ucall" interface.  In either case, I think you'll
need to modify and recompile ufunc.c (or ucall.c) and probably
link the SQR DLL.  You'll end up writing a little bit of glue that
translates between the way SQR stores its variables and the way
your C modules pass parameters.

Hope this helps.

Ray
----------------------------------------------------------------------
Ray Ontko       |  Ray Ontko & Co  |  "Time for a new signature line."
rayo@ontko.com  |  Richmond, In    |  See us at http://www.ontko.com/