Search found 342 matches

by marpon
Feb 23, 2019 11:14
Forum: General
Topic: SOLVED : How to compile c emitted code with mingw toolchain
Replies: 4
Views: 648

SOLVED: How to compile c emitted code with mingw toolchain

a batch file to take the emitted c file as input to compile in c with your evolutions if you have to use it : put the right path of your freebasic version 32 or 64 put also the right path of your mingw toolchain same 32 or 64, needed for the .h headers you want to add and launch it with "name_o...
by marpon
Feb 22, 2019 18:26
Forum: General
Topic: SOLVED : How to compile c emitted code with mingw toolchain
Replies: 4
Views: 648

SOLVED - How to compile c emitted code with mingw toolchain

In fact it works very well! just used the cmdline done from the fbc compiler log when compiling to gen gcc with option -R put that cmd line into a bach file into the same folder as the .bas (and .c emitted) and worked without any problem. after to modify the c emitted code, i added as an example #in...
by marpon
Feb 22, 2019 15:59
Forum: General
Topic: SOLVED : How to compile c emitted code with mingw toolchain
Replies: 4
Views: 648

Re: How to compile c emitted code with mingw toolchain -SOLVED

Thank's for your quick reply. It was exactly what I've done first , putting the fb static libs, and the differents .o files, seen on the compiled cmdline, into the lib folder of my mingw toolchain replacing fbc by gcc on these cmd line changing the paths for the static libs and .o to the ones on the...
by marpon
Feb 22, 2019 14:59
Forum: Windows
Topic: AxSuite3 : evolution for ActiveX support
Replies: 10
Views: 2885

Re: AxSuite3 : evolution for ActiveX support

Reactivating that post to change the dead link for AxSuite3.2

https://www.freebasic-portal.de/dlfiles/653/AxSuite3.2.zip
by marpon
Feb 22, 2019 14:39
Forum: General
Topic: SOLVED : How to compile c emitted code with mingw toolchain
Replies: 4
Views: 648

SOLVED : How to compile c emitted code with mingw toolchain

I am under windows 10 using mingw 32 or 64. I would like to know how to compile the c emitted code drectly with the c compiler, the idea is to modify the c emitted code by adding more c functions and after compile it directly with c. I tried compiling some examples, and even I've put all the freebas...
by marpon
Feb 12, 2019 9:21
Forum: Libraries
Topic: libs 32/64 windows only to execute exe/dll from memory not from disk
Replies: 8
Views: 5318

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

V4 version of static libs with very simple encrypt/decrypt feature ( just to validate it is easy to do it)

see files on github V4 , example of use...

i put also an encoder gui source and decoder gui source just to simplify the job

remarks will be welcome...
by marpon
Feb 11, 2019 12:23
Forum: Tips and Tricks
Topic: IncFile() and IncArray() macros [Updated 22-1-2009]
Replies: 88
Views: 46070

Re: IncFile() and IncArray() macros [Updated 22-1-2009]

VANYA, tested your code it does work at least on win 10 32 or 64 gas or gcc but if you ask optimization -gen gcc -O 2 or -gen gcc -O 3 it is blocked -gen gcc -O 0 or -gen gcc -O 1 it is okay with my code even with -gen gcc -O 2 or -gen gcc -O 3 it is working why? sorry too litle competencies on asm ...
by marpon
Feb 10, 2019 17:36
Forum: Tips and Tricks
Topic: IncFile() and IncArray() macros [Updated 22-1-2009]
Replies: 88
Views: 46070

Re: IncFile() and IncArray() macros [Updated 22-1-2009]

I've recently reviewed these macros, they were not working not only on 64bis but also on the recent fbc version, still work fine on fbc 0.24 so i've done some evolution #Macro Macro_IncCommunEx(label , file , sectionName) dim label##_data as UByte Ptr dim label##_size as ULong #If __FB_DEBUG__ asm j...
by marpon
Feb 08, 2019 12:07
Forum: Beginners
Topic: Matrix to string
Replies: 15
Views: 1464

Re: Matrix to string

made a test to check speed #include "crt/string.bi" 'needed for memcpy #define K_VALUE 10000 'can be increased for more speed function clip_string_uni_matrix(z() as double) as string ' converts matrix to clips string variable, which is global ' terminate with crlf, also the last line dim a...
by marpon
Feb 08, 2019 11:18
Forum: Beginners
Topic: Matrix to string
Replies: 15
Views: 1464

Re: Matrix to string

elaborated solution with pointer i put it in a function to return the needed string dont need shared string inside, if you want a sub convert it and use the shared string. #include "crt/string.bi" 'needed for memcpy function #define K_VALUE 10000 'can be increased for more speed function c...
by marpon
Feb 08, 2019 10:33
Forum: Beginners
Topic: Matrix to string
Replies: 15
Views: 1464

Re: Matrix to string

better to use pointers and memcpy! preallocate zstring ptr with a big size ex 10000 or more check if enough space to copy if yes : memcpy the strptr( Str(Z(i,j)) to the rigth position and length,in that zstring ptr if not : the allocated size is not enougth, reallocate the zstring ptr with the doubl...
by marpon
Feb 08, 2019 9:53
Forum: Libraries
Topic: libs 32/64 windows only to execute exe/dll from memory not from disk
Replies: 8
Views: 5318

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

Not difficult! first, you have to prepare to pre-encrypt the exe/dll (with any crypt solution you want ) and use these encrypted files before the compilation of the resulting executable because incbin will embeed a file without any action. On your code you have to put the relevant code to decrypt, u...
by marpon
Feb 07, 2019 14:27
Forum: Libraries
Topic: libs 32/64 windows only to execute exe/dll from memory not from disk
Replies: 8
Views: 5318

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

Another exemple of use
to create static lib from dll , in fact the static lib includes the dll and use it from memory

here the explanation and links
https://www.freebasic.net/forum/viewtopic.php?f=6&t=27380&p=258054#p258054
by marpon
Feb 07, 2019 14:22
Forum: Windows
Topic: [some OT] questions on DLL(Dynamic library)
Replies: 7
Views: 1157

Dll to static lib work-arround

To continue the subject dll2lib here are the elements to make tests under 32 or 64 bits 2 dlls as example to use (any else can be used) calendrier.dll for 32 my_dll64.dll for 64 2 needed static libs , i've coded in c to manage dll from memory, (difficult to translate to fb) libMemDll_32.a libMemDll_...
by marpon
Feb 05, 2019 16:19
Forum: Libraries
Topic: libs 32/64 windows only to execute exe/dll from memory not from disk
Replies: 8
Views: 5318

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

version 2 available on github

better execution from memory, simplified version of the libs

i noticed false virus detection with 5 tests of virus total when executing exe from memory, probably the same way some virus doing...

but seems ok with dll from memory

nobody has tested ?

Go to advanced search