Search found 586 matches

by UEZ
Jun 12, 2020 7:56
Forum: General
Topic: Include dll into .exe
Replies: 15
Views: 514

Re: Include dll into .exe

Hey UEZ, Include a dll into .exe, but if there is not a elegant and simple solution then I will skip it. Thanks Afaik, there is no solution for Freebasic yet unless someone is willing to port it to Freebasic, too. For other languages, e.g. AutoIt, yes. I can provide you a sample code but this will ...
by UEZ
Jun 12, 2020 7:20
Forum: General
Topic: Include dll into .exe
Replies: 15
Views: 514

Re: Include dll into .exe

Provoni wrote:Thanks for your answers everyone.

UEZ wrote:Definitely it can be done. I did it using Autoit in several project I made. ;-)

Can you give a short run down?

What do you need exactly?
by UEZ
Jun 12, 2020 7:16
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 356
Views: 36930

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

SARG wrote:And UEZ very nice program, the display, not the code :-).

LOL

Btw, I updated GAS64 to 2020-06-05 version. I crashed one time only so far...
by UEZ
Jun 11, 2020 20:33
Forum: General
Topic: Include dll into .exe
Replies: 15
Views: 514

Re: Include dll into .exe

srvaldez wrote:never tried it but apparently it can be done, here's a purebasic solution https://www.purebasic.fr/english/viewto ... dll+binary

Definitely it can be done. I did it using Autoit in several project I made. ;-)
by UEZ
Jun 11, 2020 20:22
Forum: General
Topic: Include dll into .exe
Replies: 15
Views: 514

Re: Include dll into .exe

Hey all, My program uses zlibwapi.dll. Is there a way to include it with the .exe itself so it doesn't need to be included in the program directory? Thanks Yes for windows at least, it is possible to embed the DLL into the exe and call it directly from the memory. Check this out: http://www.joachim...
by UEZ
Jun 11, 2020 18:59
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 356
Views: 36930

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Using gas UEZ's revised code still saw an increasing particle count, CPU Load and private bytes requested but the upward trend was much less than previously so it will take much longer to see a fall in the fps. So, we still may have a leak but the 'hole in the bucket' is much smaller. Well, on my m...
by UEZ
Jun 11, 2020 12:17
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 356
Views: 36930

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

In my last post I mentioned Stack.Push and Stack.Pop. The code does nothing but 'push'. Why? As far as I can remember I used the therefore the _Stack.Cleanup() function which is buggy and caused the memory leak. Can you please try this small modification on Fireworks? 'Fireworks v0.50 build 2020-06...
by UEZ
Jun 11, 2020 10:06
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 356
Views: 36930

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

A few words to the fireworks code: this was my very first attempt to create a fireworks effect using classes and I assume that I did make mistakes in using it. I fully agree that without comments it's hard to understand the code after some time and yes it's very complicated coded. ^^ Overall I'm not...
by UEZ
Jun 09, 2020 14:42
Forum: Beginners
Topic: Complex word replacement in a string problem
Replies: 8
Views: 425

Re: Complex word replacement in a string problem

Here an example using regex. You need the libpcre.a in the lib folder which can be found in STW's repository: http://users.freebasic-portal.de/stw/files/prog/fb/libs/ StringRegEx.bi: 'Coded by UEZ build 2019-03-04 'libpcre.a needed in lib folder! #Ifdef __Fb_64bit__ #Libpath "lib\win64\" #...
by UEZ
Jun 08, 2020 12:05
Forum: Projects
Topic: VisualFBEditor - IDE for FreeBasic
Replies: 116
Views: 17098

Re: VisualFBEditor - IDE for FreeBasic

I got a crash when doing following: *open IDE *press new icon *paste a source code to the editor *select all the code and press ctrl+x Tested on v1.2.4.274 x64 Faulting application name: VisualFBEditor64.exe, version: 1.2.4.274, time stamp: 0x5eca4f01 Faulting module name: VisualFBEditor64.exe, vers...
by UEZ
Jun 07, 2020 20:44
Forum: General
Topic: Optimum sum of a set of numbers
Replies: 18
Views: 669

Re: Optimum sum of a set of numbers

Without having analyzed it: Although the result is correct, this Rosetta code seems to be quite ineffective. It does 986409 iterations, while there are only 2^10 - 1 = 1023 possible combinations of the values. Here another approach, with a recursive called sub and without limitation of the number o...
by UEZ
Jun 06, 2020 23:05
Forum: General
Topic: Optimum sum of a set of numbers
Replies: 18
Views: 669

Re: Optimum sum of a set of numbers

Here my version: 'https://rosettacode.org/wiki/Permutations#FreeBASIC Sub Permutations() Dim As Uinteger i, ii, j, jj, count = 1 Dim As Uinteger a(0 To ...) = {175, 250, 79, 325, 652, 125, 410, 519, 10, 701}, n = Ubound(a), c(0 To n -1) Dim As Uinteger sum = 0, target = 1000, nearest = target, found...
by UEZ
Jun 06, 2020 16:46
Forum: Windows
Topic: gas binary sizes
Replies: 9
Views: 333

Re: gas binary sizes

That's odd - I cannot find 'aFlimmer' in Fireworks. It should be in Sub Kaboom.Update(), line 256: Sub Kaboom.Update() If This.rockety > This.heigh Then This.rocketx += This.rocketvx This.rockety += This.rocketvy Else If This.set = False Then For i As Ulong = 0 To This.particles - 1 This.Boom(i).x ...
by UEZ
Jun 06, 2020 15:11
Forum: General
Topic: Windowtitle not working when using SetProcessDpiAwareness
Replies: 7
Views: 241

Re: Windowtitle not working when using SetProcessDpiAwareness

When I use the winapi call SetProcessDpiAwareness then the windows title is empty. Hi UEZ, We had a discussion about Dpiawareness months ago, when doing freebasic game challenge, and we tried many ways to do this (adding a manifest and so on...). It came out that among all the others testes at the ...
by UEZ
Jun 06, 2020 15:03
Forum: Windows
Topic: gas binary sizes
Replies: 9
Views: 333

Re: gas binary sizes

Hi deltatrho Oh boy, am I showing my ignorance now. What then is affecting the binary size? The size of linked libraries could be different.... By the way I tested fireworks I needed to change (as Dodicat said) : 'Dim As Ubyte aFlash(0 To ...) = {255, 0} by Dim As Ubyte aFlash(0 To 253) = {255, 0} ...

Go to advanced search