|
From: Roberto S. <ro...@sa...> - 2004-04-27 10:36:08
|
Thanks, I sorted out the mess I had and now my examples work fine. Ming=20
really rocks !!!
regards
Roberto
S=E9bastien NICAISE wrote:
> 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=3D (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=20
>> buffer, but I didnt found in the documntation the information, how to=20
>> do that,
>> in ming.h I found:
>>
>> int SWFMovie_output(SWFMovie movie, SWFByteOutputMethod method,=20
>> void *data);
>>
>> But I dont know what is SWFByteOutputMethod.
>> I tried with:
>>
>> char* data;
>> int length =3D 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=3D12297
>> _______________________________________________
>> Ming-devr mailing list
>> Min...@li...
>> https://lists.sourceforge.net/lists/listinfo/ming-devr
>>
>>
>
>
>
> -------------------------------------------------------
> 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=3D12297
> _______________________________________________
> Ming-devr mailing list
> Min...@li...
> https://lists.sourceforge.net/lists/listinfo/ming-devr
>
|