Search found 342 matches

by marpon
Jan 28, 2019 9:41
Forum: Windows
Topic: [some OT] questions on DLL(Dynamic library)
Replies: 7
Views: 1195

Re: [some OT] questions on DLL(Dynamic library)

Some year ago i've also tried to convert dll to static lib on an attempt to provide unly 1 executable file not with dll(s) around, with the risk of not using the right version, missing dll etc... but dll2lib was not working well, so i've changed direction i've embedded all the dlls i needed into my ...
by marpon
Jan 23, 2019 16:49
Forum: Libraries
Topic: libs 32/64 windows only to execute exe/dll from memory not from disk
Replies: 8
Views: 5368

libs 32/64 windows only to execute exe/dll from memory not from disk

can execute embedded exe from memory not from disk can use embedded dll export functions from memory not from disk 1 test .bas file can be found here : https://github.com/marpon/mem_exe_dll the zip package also there (to simplify the compilation let all files in the same folder) includes : the bas f...
by marpon
Dec 14, 2018 16:52
Forum: Tips and Tricks
Topic: Insert/Replace String procedures
Replies: 38
Views: 3105

Re: Insert/Replace String procedures

again my last comparaison ( in fact i like string functions as you can see...) for speed it is always good to have a look on the c functions, they have been optimized after more than 2 decades so they are generaly very fast. incorcorating the last MrSwiss adaptation and cumulative as dodicat has don...
by marpon
Dec 14, 2018 12:53
Forum: Tips and Tricks
Topic: Insert/Replace String procedures
Replies: 38
Views: 3105

Re: Insert/Replace String procedures

@dodicat

with optimisation -0 2 in windows -gen gcc 32 or 64 or gas 32 the compiler don't care of your code it understand is nothing to do

but without optimisation with any or 0 or no value is similar time...
by marpon
Dec 14, 2018 12:21
Forum: Tips and Tricks
Topic: Insert/Replace String procedures
Replies: 38
Views: 3105

Re: Insert/Replace String procedures

added a missing test in marpon and marpon2 , if not found patern return original string modified test with randomized string construct, to check with longer strings and adapt the nb of occurances to find... ' #include "crt.bi" ' *** compile as 32- or 64-bit *** #INCLUDE ONCE "crt/stri...
by marpon
Dec 14, 2018 9:47
Forum: Tips and Tricks
Topic: Insert/Replace String procedures
Replies: 38
Views: 3105

Re: Insert/Replace String procedures

added new replace_c2 function changing alloction way, using a static string as temp string wich is returned by ref it's bit faster specially on 32 or 32 -gen gcc ( only tested in windows), less important on 64 wich is in fact slower tested on i7 2.6 Ghz under win10 @MrSwiss i prefer not using zstrin...
by marpon
Dec 13, 2018 17:27
Forum: Tips and Tricks
Topic: Insert/Replace String procedures
Replies: 38
Views: 3105

Re: Insert/Replace String procedures

My version converted from my c codes #INCLUDE ONCE "crt/string.bi" function replace_c(byref soriginal as string , byref spattern as string , byref sreplacement as string) as string dim as integer orilen = len(soriginal) dim as integer patlen = len(spattern) dim as integer replen = len(srep...
by marpon
Dec 13, 2018 8:47
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2020.07.20)
Replies: 1078
Views: 180964

Re: FreeBasic IDE-poseidonFB(Update 2018.12.09)

Kuan Hsu

in fact I was using an very old version of your IDE, updating it to the last one, worked very well.

thank's for your support, and for your IDE wich is the one I use in linux mode

Marc
by marpon
Dec 12, 2018 16:16
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2020.07.20)
Replies: 1078
Views: 180964

Re: FreeBasic IDE-poseidonFB(Update 2018.12.09)

thank's,
that what i was doing , but poseidon was blocked , all the .c files created, same for .o , get also .asm files but seems blocked at link...
by marpon
Dec 12, 2018 16:12
Forum: Linux
Topic: How to force opening a window terminal from program
Replies: 4
Views: 5439

Re: How to force opening a window terminal from program

May be: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgOpenScrn "Opens the console directly for input and output as a file" Joshy it does not work in linux nor in windows It is a simple question, and although a have some experience with linux, I cannot really answer the question (onl...
by marpon
Dec 11, 2018 8:48
Forum: Linux
Topic: How to force opening a window terminal from program
Replies: 4
Views: 5439

How to force opening a window terminal from program

hi
I am using Mint XFCE 18.3 /64, (but quite newbie on linux)
how in freebasic , create a program wich can be launched from file manager and from prog request opening a terminal window to show printing items.

idealy, an universal solution for all kind of linux distributions ?
by marpon
Dec 11, 2018 8:28
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2020.07.20)
Replies: 1078
Views: 180964

Re: FreeBasic IDE-poseidonFB(Update 2018.12.09)

hi Kuan Hsu,

under linux 64, (with i'm not very familiar) i've tested your ide to compile single file source code, all worked ok
so to explore more, I've tried to compile the fbc compiler using a poseidon project but it failed , could you explain how to do?
by marpon
Dec 05, 2018 16:38
Forum: Tips and Tricks
Topic: Get String Characters 4x Faster than Mid()
Replies: 83
Views: 5508

Re: Get String Characters 4x Faster than Mid()

@z gives me a Suspicious pointer assignment in 1.05 Use STRPTR instead: dim as string * 32 z = "hello" dim as zstring ptr pz = strptr(z) 'simpler: = @z pz[2][3]=asc("X") print z pz[5]=asc("Y") print z sleep in that case with z as string * 32 better to use varptr(z) or ...
by marpon
Nov 25, 2018 10:40
Forum: Tips and Tricks
Topic: Simple lzfx encoder - decoder without dependancies
Replies: 4
Views: 710

Re: Simple lzfx encoder - decoder without dependancies

Thanks to test @Dodicat you have found a bug, i was using the same function to estimate the size for the needed buffer for compress and uncompress but it is not working well for compression as you have noticed. so I have to modify for 2 separated functions size_comp_buffer to get the estimated size ...
by marpon
Nov 24, 2018 19:03
Forum: Tips and Tricks
Topic: Simple lzfx encoder - decoder without dependancies
Replies: 4
Views: 710

Simple lzfx encoder - decoder without dependancies

I'm still not very satisfied on what iI've done on that topic https://www.freebasic.net/forum/viewtopic.php?f=7&t=27119 the miniz code in c is too long/difficult to translate so i change to a simpler and more efficient encoder - decoder without dependancies. lzfx /' * version 0.1 translated to f...

Go to advanced search