Search found 393 matches

by Provoni
Jun 13, 2020 8:47
Forum: General
Topic: Include dll into .exe
Replies: 15
Views: 1213

Re: Include dll into .exe

jj2007 wrote:
Provoni wrote:worst case scenario.
Which is?

Program execution outside of original directory somehow.
by Provoni
Jun 13, 2020 7:31
Forum: General
Topic: Include dll into .exe
Replies: 15
Views: 1213

Re: Include dll into .exe

jj2007 wrote:The cleanest solution is to include the DLL in the installation package. But then OP might run into licensing problems, I suppose. Is hiding it inside the exe the solution?

Not a licensing problem. Just want the .exe to be stand alone for worst case scenario.
by Provoni
Jun 13, 2020 6:15
Forum: General
Topic: Array question [Solved]
Replies: 8
Views: 691

Re: Array question [Solved]

fxm wrote:Personally, I prefer the following syntax (with a pointer index), considering that the data to access is into an integer buffer pointed by test:
test[i] = 123


dodicat wrote:rewriting the array to a single-dim

Thanks
by Provoni
Jun 13, 2020 5:10
Forum: General
Topic: Problem with PUT
Replies: 5
Views: 473

Re: Problem with PUT

dodicat wrote:I don't have enough ram here, but does the crt file handling work better?

When I try 8GB with your example it says: warning 25(0): Overflow in constant conversion, and no file is made.

I've worked arount the PUT issue by buffering it.
by Provoni
Jun 13, 2020 5:05
Forum: General
Topic: Problem with PUT
Replies: 5
Views: 473

Re: Problem with PUT

On my Win7-64 machine it doesn't freeze, but it doesn't write anything either. Some error checking might help. #include "Windows.bi" static shared as ubyte array() '8GB redim array(8000000000) print "GetLastError=";GetLastError(), " (8=not enough memory)" open "te...
by Provoni
Jun 12, 2020 19:32
Forum: General
Topic: Problem with PUT
Replies: 5
Views: 473

Problem with PUT

Hey all, Following program freezes when the output file is around 3.5GB. Does PUT not work with big files? FBC 1.07.1, Win10, 64GB RAM. Thanks screenres 512,384,32 static shared as ubyte array() '8GB redim array(8000000000) open "test8gb.txt" for binary access write as #1 put #1,,array() c...
by Provoni
Jun 12, 2020 7:37
Forum: General
Topic: Include dll into .exe
Replies: 15
Views: 1213

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
by Provoni
Jun 12, 2020 7:25
Forum: General
Topic: Array question [Solved]
Replies: 8
Views: 691

Re: Array question

Solved my own problem:

Code: Select all

dim as integer ptr test=@myarray(0,0,0)

for i=0 to 999
   *(test+i)=123
next i
by Provoni
Jun 12, 2020 6:50
Forum: Tips and Tricks
Topic: Unique Numbers Sequence Generator
Replies: 3
Views: 635

Re: Unique Numbers Sequence Generator

Is it similar to this snippet? screenres 640,480,32 dim as integer i,low=32,high=64,l=high-low,array(l) for i=low to high array(i-low)=i next i randomize timer for i=0 to l swap array(int(rnd*l)),array(int(rnd*l)) next i for i=0 to l print array(i); 'output random unique number next i sleep
by Provoni
Jun 12, 2020 6:39
Forum: General
Topic: Array question [Solved]
Replies: 8
Views: 691

Array question [Solved]

Hey all, Suppose that there is a multi-dim array as such: myarray(9,9,9). To loop through each element: for i=0 to 9 for j=0 to 9 for k=0 to 9 'do something next k next j next i Is there a way to do the following without rewriting the array to a single-dim? for i=0 to 999 'do something next i Thanks
by Provoni
Jun 12, 2020 5:34
Forum: Beginners
Topic: Can FB create arrays of constant values? [YES]
Replies: 7
Views: 1406

Re: Can FB create arrays of constant values? [YES]

Do not confuse: - Const (the keyword) when it is used to define a constant data which remains at the compiler level only (replaced by its value during the compilation phase), - and Const (the qualifier) when used to qualify the declaration (with Dim ) of a real variable (for the execution phase) bu...
by Provoni
Jun 12, 2020 5:28
Forum: General
Topic: Include dll into .exe
Replies: 15
Views: 1213

Re: Include dll into .exe

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?
by Provoni
Jun 11, 2020 20:55
Forum: Beginners
Topic: Can FB create arrays of constant values? [YES]
Replies: 7
Views: 1406

Re: Can FB create arrays of constant values? [YES]

I'm trying this simple example but it doesn't work. What am I doing wrong?

Thanks

Code: Select all

screenres 640,480,32

const test(3)={1,2,3,4}

print test(2)

sleep
by Provoni
Jun 11, 2020 19:11
Forum: General
Topic: Include dll into .exe
Replies: 15
Views: 1213

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
by Provoni
Jun 08, 2020 5:31
Forum: Tips and Tricks
Topic: The spooky recursive backtracker
Replies: 9
Views: 2053

Re: The spooky recursive backtracker

badidea wrote:Did anyone know that Pacman has no eyes?

He has one, but it's on the other side.

Go to advanced search