Thanks guys.

Already I have made an OgreMagic installer but I am waiting for final form of my library then I will distribute it.
Shocky , I have found that old code in my computer , may be I got it more than 7 months ago in dbf forum.
The idea is that , you must create an empty sprite which has the desired buffer length the when you want to draw to it you must lock the sprite to obtain a butter pointer then use this pointer to fill the buffer as you did with your software code then unlock the sprite then you can do what you want with that sprite.
Now I am working in simplify tasks by using some similar tiny PCT functions but with deferent parameters.
About the size of file, after some thinking I have decided that I will use a DLL ,OgreMagic.DLL, instead of static library because I wont my library work with as many language as possible , and there will be no problem in send examples because the installer will copy the needed dlls when installation process.