timj_moore wrote:
> 
> Hi,
> 
> I'm porting a Windows/IIS app to unix/Apache::ASP by using SWIG to
> interface between C++ and Perl.
> 

I have not worked with it, but as an alternative to this approach
you could also look into using the Inline::CPP module to glue
the languages together.

> However, I've come across a situation where the Windows version
> returns a VARIANT containing a SAFEARRAY via. COM to the IIS ASP
> script (VBScript) and that's written out using BinaryWrite (which
> takes a variant SAFEARRAY of unsigned bytes in windows). I assume IIS
> uses SAFEARRAY to work out the size of the data it's going to write
> because it has structure members specifying the number of elements,
> other than that it's just being used as a wrapper around a binary
> data buffer.
> 
> The problem is, how do I write something similar in unix?
> 
> I can return a simple character array buffer (a char*), but how would
> BinaryWrite in Apache::ASP know how large this buffer is?
> 
> Or, do I need to get my data into some kind of perl array structure
> which I assume contains the length of data? I'm not very hot on perl
> itself.
> 

I don't know SWIG at all, but BinaryWrite will need to ultimately
get a perl scalar value passed to in containing the binary data in
a string.

--Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to