Search found 2764 matches

by Tourist Trap
May 17, 2019 15:12
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 26932

Re: New array features

Of course accessing the array elements is a different thing, then we need the type of those elements, but that´s not what we primarily want "VARPTR(array)" for. I can not say if it will be relevant or not to have VARPTR(array) return the array descriptor address. But even if I leave this ...
by Tourist Trap
May 17, 2019 11:22
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 26932

Re: New array features

Fxm´s code is a clever workaround for a missing feature. Currently you can use VARPTR for retrieving a pointer to an array´s elements, but you cannot retrieve the array´s descriptor with VARPTR. I already coded the necessary changes for the compiler to return this pointer with VARPTR: p = @array, o...
by Tourist Trap
May 17, 2019 11:16
Forum: General
Topic: FBComplex - complex number library - 64bit?
Replies: 5
Views: 460

Re: FBComplex - complex number library - 64bit?

. Has anyone used jdebord's "FBComplex: complex number library" with FB 64bit? https://www.freebasic.net/forum/viewtopic.php?f=8&t=19115 I didn't try this for the moment. But just in case, there is this there that does also complex numbers computations: https://www.freebasic.net/forum...
by Tourist Trap
May 16, 2019 14:57
Forum: General
Topic: using gnuplot in Windows
Replies: 13
Views: 843

Re: using gnuplot in Windows

srvaldez wrote:you could do a plot with a simple command like

Nice. Very easy. Thanks for the tip.
by Tourist Trap
May 16, 2019 13:13
Forum: Tips and Tricks
Topic: Thorough search.
Replies: 3
Views: 2984

Re: Thorough search.

Find words in text or binary files in folders . . . Looks very useful, but I fail using it. Is there a type of file searched? First I changed the path with "E:\" then I tried a search of a given string in a .bas, it didn't work, neither .txt. Searching . . . La syntaxe du nom de fichier, ...
by Tourist Trap
May 15, 2019 17:06
Forum: General
Topic: Need help improve my anticheating engine
Replies: 3
Views: 370

Re: Need help improve my anticheating engine

In an example case: An cheater will try to set the Highscore in an game from 1245670 to 99999999 so he simply uses cheatengine, scans the memory for 1245670 and sets this to 99999999. Exactly this will i prevent with any methods and ideas... Ok, thank you :) Now it's clear enough ! but I have no id...
by Tourist Trap
May 15, 2019 9:41
Forum: Community Discussion
Topic: When will we have a new challenge :)
Replies: 9
Views: 2594

Re: When will we have a new challenge :)

... the interest of the coding challenge is not only to find the most efficient code or the fastest but also to show the panoply of possibilities. There was this very popular thread authored by fxm that looks like what you describe: https://www.freebasic.net/forum/viewtopic.php?f=17&t=25257&...
by Tourist Trap
May 15, 2019 9:38
Forum: General
Topic: Need help improve my anticheating engine
Replies: 3
Views: 370

Re: Need help improve my anticheating engine

This code is an simple anticheating engine, to defend my values in games from cheaters, based on hashed xor encrypted integers. When an cheat was detectet is the returned value zero(0). It is not perfect so it can be easy cracked with https://www.cheatengine.org/ as example, and this is why i need ...
by Tourist Trap
May 14, 2019 3:01
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 26932

Re: New array features

Hello, is there a cost in term of performance with the improved handling? Otherwise, in my opinion, we should have a simple unhandled version (fast), and a new handled stuff, handled but slower. If of course there is performance cost. I don't know. Thanks anyway for those proposals. Need time to tes...
by Tourist Trap
May 14, 2019 2:54
Forum: General
Topic: Explicit contructor needed for string in UDT?
Replies: 3
Views: 337

Re: Explicit contructor needed for string in UDT?

Just curious. Why is this not allowed? type font_type dim as string face dim as integer size end type dim as font_type f = type("arial", 18) print f.face, f.size Results in: testString.bas(6) error 98 Hi badidea, From what I think I understood about this, it's because assignment TYPE<...>...
by Tourist Trap
May 13, 2019 19:08
Forum: Documentation
Topic: Wiki improvements
Replies: 359
Views: 52614

Re: Wiki improvements

A next article coming soon (status 'in progress'): 18. How FB supports Sub-Type Polymorphism, demonstrated by Emulation very Close to Real Operating (article of 1 post) See Index page of tutorial / teaching / pedagogical topics (draft articles for documentation) Do you have particular requests arou...
by Tourist Trap
May 13, 2019 3:26
Forum: General
Topic: Typeof (pointer value) ?
Replies: 8
Views: 551

Re: Typeof (pointer value) ?

Now I want to change/replace this part "Cast(udtB ptr," 'from line " get #fx(iB),recN,*Cast(udtB ptr, pA),1 " by used index "iB" with keyword 'Typeof(*somePointer(iB))', assuming, to get needed routine. Hi ppf, if you want an array of untyped pointers , namely somePoin...
by Tourist Trap
May 12, 2019 12:38
Forum: General
Topic: Typeof (pointer value) ?
Replies: 8
Views: 551

Re: Typeof (pointer value) ?

ppf wrote:In case of bigger 'if' statements field to detect datatype, it could be replaced by only one line
of thinked syntax, for any initialized variable type/udt

Why don'tyou you simply pass the size to your read function before you cast the typed variable pointer to an ANY ptr ? Would be simpler.
by Tourist Trap
May 12, 2019 12:34
Forum: General
Topic: Changelog OpenGL 2d render question...
Replies: 1
Views: 255

Re: Changelog OpenGL 2d render question...

2D render through OpenGL on Windows and Linux via screencontrol (angros47) I'm curious as to exactly what this is. Sorry if I missed something obvious... Thanks. Hi, https://www.freebasic.net/forum/viewtopic.php?f=17&t=25902 if you see how this works, don't hesitate to post your discovery. I di...
by Tourist Trap
May 11, 2019 12:18
Forum: General
Topic: Typeof (pointer value) ?
Replies: 8
Views: 551

Re: Typeof (pointer value) ?

what about this one ?? Dim As TypeOf(*p) bar 'p is a pointer to initialized variable/UDT This feature enabled, my life is easier ;) Hello ppf, this below works: dim as single S dim typeOf(*(@S)) X As far as you can say the type just by reading the code, typeOf will also be able to do so. To test ty...

Go to advanced search