|
From: <sni...@ic...> - 2004-04-27 08:50:53
|
In ming.h :
typedef void (*SWFByteOutputMethod)(byte b, void *data);
SWFByteOutputMethod is a function pointer. Write something like that :
void SWFOutputMethodBuffer (byte i, void *data)
{
char* buffer= (char*)data;
// Append i to buffer
}
char* buffer;
SWFMovie_output (movie, SWFOutputMethodBuffer , buffer);
Roberto Saccon wrote:
> Hi all
>
> I want ming (C-version) to oputput the swf not to file, but to a
> buffer, but I didnt found in the documntation the information, how to
> do that,
> in ming.h I found:
>
> int SWFMovie_output(SWFMovie movie, SWFByteOutputMethod method,
> void *data);
>
> But I dont know what is SWFByteOutputMethod.
> I tried with:
>
> char* data;
> int length = SWFMovie_output(movie, SWFOutputMethod, data);
>
> But that did not work,.
>
>
> What am I missing ?
>
> regards
> Roberto
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
> For a limited time only, get FREE Ground shipping on all orders of $35
> or more. Hurry up and shop folks, this offer expires April 30th!
> http://www.thinkgeek.com/freeshipping/?cpg=12297
> _______________________________________________
> Ming-devr mailing list
> Min...@li...
> https://lists.sourceforge.net/lists/listinfo/ming-devr
>
>
|