Search found 307 matches

by marpon
Apr 05, 2019 9:35
Forum: Projects
Topic: FB File2Bas Code Generator v1.00 build 2019-04-16 beta [Windows only]
Replies: 5
Views: 573

Re: FB File2Bas Code Generator v0.99 beta [Windows only]

as on example, a code to embeed files just using incbin #Macro Macro_IncCommunEx(label , file , sectionName) dim label##_data as UByte Ptr dim label##_size as ULong #If __FB_DEBUG__ asm jmp .LT_END_OF_FILE_##label##_DEBUG_JMP #Else asm .section sectionName ' Switch to/Create the specified section #E...
by marpon
Apr 05, 2019 9:10
Forum: Projects
Topic: FB File2Bas Code Generator v1.00 build 2019-04-16 beta [Windows only]
Replies: 5
Views: 573

Re: FB File2Bas Code Generator v0.99 beta [Windows only]

as in example a code to embeed files just using rcdata as simple as that #include once "windows.bi" 'compile with -x "D:\freebasic\samples\res_embeed.exe" -w pedantic -s console -v res_embeed.bas XXX_TEMP.RC > res_embeed.log 2>&1 'example of rc file named XXX_TEMP.RC /' //_BE...
by marpon
Apr 05, 2019 8:18
Forum: Projects
Topic: FB File2Bas Code Generator v1.00 build 2019-04-16 beta [Windows only]
Replies: 5
Views: 573

Re: FB File2Bas Code Generator v0.99 beta [Windows only]

@UEZ nice to see, some usage of lzfx code yes, you could use also lzmat code, wich is better in compression ratio versus lzfx , and similar on speed decompression. but if you are interrested on compression have a look on my github place for compress https://github.com/marpon/Compression_tools you wi...
by marpon
Apr 05, 2019 7:30
Forum: Tips and Tricks
Topic: Simple lzmat compress/decompress without any dependency
Replies: 6
Views: 222

Re: Simple lzmat compress/decompress without any dependency

@UEZ happy to see some interrest... I will reply more deeply on your posted project. @srvaldez i don't understand what's wrong. just use the function to push the compressed buffer to it it will be saved as compressed file ubyte2File(_COMPRESSED_FILE_,enc1 , i2) after if you want to decompress that c...
by marpon
Apr 04, 2019 16:44
Forum: Tips and Tricks
Topic: Simple lzmat compress/decompress without any dependency
Replies: 6
Views: 222

Re: Simple lzmat compress/decompress without any dependency

@srvaldez yes it is no output to file , just buffers to compare thats enougth to verify the full compression/decompression process, but no problem, you can add that feature simply. take the buffer you want to save as file (compressed or uncompressed or both) and just use a function like this one to ...
by marpon
Apr 04, 2019 15:50
Forum: General
Topic: Need help on converting C code
Replies: 12
Views: 413

Re: Need help on converting C code

THANK YOU DLK, for your very good fbfrog. just finished convert a compress /decompress code from c, can see the post on Tips & Tricks After some cleaning on the c code as explained before, the for ... loop do not convert easily with fbfrog the --, ++ , multi steps expended... used fbfrog and onl...
by marpon
Apr 04, 2019 15:39
Forum: Tips and Tricks
Topic: Simple lzmat compress/decompress without any dependency
Replies: 6
Views: 222

Simple lzmat compress/decompress without any dependency

Hi, again a new compress/decompress code, from c source public domain by Ilya Muravyov. got it under crush name in powturbo github converted and adapted to freebasic, gives a quite good compression ratio /speed, very fast on decompression and very light also. and only in freebasic code '' original c...
by marpon
Apr 03, 2019 14:33
Forum: General
Topic: Need help on converting C code
Replies: 12
Views: 413

Conclusion : Need help on converting C code

In fact for the ones who want convert c to freebasic, some interresting advice clean as much as you can on the c side, choose to preprocess the code or not ( you can replace defines by macros in fb) replace all the for loops , by while or do loops replace i++ by i +=1 in all part of your code try to...
by marpon
Apr 03, 2019 14:16
Forum: General
Topic: Need help on converting C code
Replies: 12
Views: 413

SOLVED REALLY : Need help on converting C code

@counting_pine thanks for your very good answer, on the mean time i've concluded as you , see here the macro : #macro sub_macro(m_resbits, m_bits , m_src) if (m_bits and &h7fffffff) <> 0 then m_resbits = m_bits m_bits = m_bits + m_bits else m_src += 4 m_resbits = *(cptr(Ulong ptr ,(m_src - 4))) ...
by marpon
Apr 02, 2019 14:21
Forum: General
Topic: Need help on converting C code
Replies: 12
Views: 413

SOLVED - Re: Need help on converting C code

Thank's both of you for your answer, on the mean time i think i got a good replacement code in c sub_macro( Ulong *presbits, Ulong *pbits , Ubyte **ppsrc0 ) { (*pbits) = (*pbits) & 0x7fffffff; if(*pbits) { *presbits = (*pbits); (*pbits) = (*pbits) + (*pbits); } else { (*ppsrc0) += 4; (*presbits)...
by marpon
Apr 02, 2019 7:25
Forum: General
Topic: Need help on converting C code
Replies: 12
Views: 413

Need help on converting C code

Hi I'm converting a c decompression code to freebasic, whith plenty of macros after preprocessing result, i've got many parts of code i do not understant , as the following if (!((bits=bits&0x7fffffff? (resbits=bits,bits+bits) : (src+=4,resbits=*((Ulong *)(src-4)),(resbits<<1)+1)),resbits>>31)) ...
by marpon
Mar 29, 2019 13:11
Forum: Libraries
Topic: win/linux static libs to compress /decompress as zlib
Replies: 5
Views: 235

Re: win/linux static libs to compress /decompress as zlib

In my quest of very litle compression tools, a new one : aPLib v1.1.1 from Joergen Ibsen http://www.ibsensoftware.com very complete static libs /dll ... static libs easy to interface with freebasic win or linux in 32/64 bits not as efficient on compression ratio /speed as minz lib but very light lib...
by marpon
Mar 26, 2019 8:36
Forum: Libraries
Topic: win/linux static libs to compress /decompress as zlib
Replies: 5
Views: 235

Re: win/linux static libs to compress /decompress as zlib

Thank's jj2007 for testing.

What version did you test?
I'am interrested on the one i am not tested at all the linux32.

Because i've created that specific version on gcc64 just using the -m32 flag , is it correct?
by marpon
Mar 25, 2019 17:47
Forum: Libraries
Topic: win/linux static libs to compress /decompress as zlib
Replies: 5
Views: 235

win/linux static libs to compress /decompress as zlib

miniz is providing a very interresting code in c to compress/decompress with comparable compress ratio/speed as zlib, but with very little size : on windows 25ko compared to zlib static lib 128ko original code here https://github.com/richgel999/miniz I wanted to convert to freebasic but it is too co...
by marpon
Mar 22, 2019 11:58
Forum: Windows
Topic: Print2Pdf , cmd line tool to convert files to pdf
Replies: 3
Views: 259

Win2Pdf , GUI tool to convert files to pdf

To continue, that subject, i've done some evolution on the lib and now it can support better the different types of source files to convert to pdf. using that evolution of the lib , i've done a GUI interface to work with multiples files to convert to pdf, heve a look here https://github.com/marpon/P...

Go to advanced search